Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache keeps track of resource instances provided to it via Update method and implements the Instancer interface
func (*Cache) Deregister ¶
Deregister implements Instancer.
type Instancer ¶
type Instancer struct {
// contains filtered or unexported fields
}
Instancer yields instances for a service in Consul.
func NewInstancer ¶
func NewInstancer(client csd.Client, logger log.Logger, service string, tags []string, passingOnly bool, listener Listener) *Instancer
NewInstancer returns a Consul instancer that publishes instances for the requested service. It only returns instances for which all of the passed tags are present.
func (*Instancer) Deregister ¶
Deregister implements Instancer.
func (*Instancer) SetListener ¶
SetListener set the update listener
Click to show internal directories.
Click to hide internal directories.