consul

package
Version: v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(conf config.ConsulCliConf) string

NewResolver ...

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func (*Builder) Build

func (*Builder) Scheme

func (r *Builder) Scheme() string

type Register

type Register struct {
	// contains filtered or unexported fields
}

Register ...

func NewRegister

func NewRegister(conf config.ConsulSrvConf) (*Register, error)

NewRegister ...

func (*Register) Deregister

func (r *Register) Deregister() error

Deregister 注销

func (*Register) GetServiceAddress

func (r *Register) GetServiceAddress() string

GetServiceAddress ...

func (*Register) GetServiceName

func (r *Register) GetServiceName() string

GetServiceName ...

func (*Register) Register

func (r *Register) Register() error

Register 注册

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func (*Resolver) Close

func (r *Resolver) Close()

func (*Resolver) ResolveNow

func (r *Resolver) ResolveNow(opt resolver.ResolveNowOption)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL