Documentation ¶
Index ¶
- type ConsulConfig
- type Register
- type RegisterConfig
- type Resolver
- func (rlv *Resolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
- func (rlv *Resolver) Close()
- func (rlv *Resolver) GetConn() *grpc.ClientConn
- func (rlv *Resolver) ResolveNow(options resolver.ResolveNowOptions)
- func (rlv *Resolver) Scheme() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulConfig ¶
type Register ¶
type Register struct {
// contains filtered or unexported fields
}
func NewRegister ¶
func NewRegister(consulConf *ConsulConfig) (*Register, error)
func (*Register) ServiceDeregister ¶
func (*Register) ServiceRegister ¶
func (register *Register) ServiceRegister(registerConf *RegisterConfig) error
type RegisterConfig ¶
type Resolver ¶
func NewResolver ¶
func NewResolver(consulConf *ConsulConfig, svcName, tag string) (*Resolver, error)
func (*Resolver) Build ¶
func (rlv *Resolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
func (*Resolver) GetConn ¶
func (rlv *Resolver) GetConn() *grpc.ClientConn
func (*Resolver) ResolveNow ¶
func (rlv *Resolver) ResolveNow(options resolver.ResolveNowOptions)
Click to show internal directories.
Click to hide internal directories.