Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder(scheme string) *builder
Types ¶
type ConsulConf ¶
type ConsulConf struct { Host string Key string Token string `json:",optional"` HealthCheck bool `json:",default=true,optional"` }
func (ConsulConf) Validate ¶
func (c ConsulConf) Validate() error
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func NewPublisher(config ConsulConf, listenOn string, opts ...PublisherOption) (*Publisher, error)
func (*Publisher) Deregister ¶
type PublisherOption ¶
type PublisherOption func(client *Publisher)
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
implements grpc.naming.Resolver
func (*Resolver) ResolveNow ¶
func (r *Resolver) ResolveNow(opts resolver.ResolveNowOptions)
Click to show internal directories.
Click to hide internal directories.