Documentation ¶
Index ¶
- func AddCmdFlags(f *flag.FlagSet)
- func Help() string
- type Consul
- func (c *Consul) CacheCreate() bool
- func (c *Consul) CacheDelete(id string)
- func (c *Consul) CacheIsValid(id string) bool
- func (c *Consul) CacheLoad(host, serviceIdPrefix string) error
- func (c *Consul) CacheLookup(id string) *registry.Service
- func (c *Consul) CacheMark(id string)
- func (c *Consul) CacheProcessDeregister(id string)
- func (c *Consul) Deregister()
- func (c *Consul) Register(service *registry.Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCmdFlags ¶ added in v0.3.0
Types ¶
type Consul ¶
type Consul struct {
// contains filtered or unexported fields
}
func (*Consul) CacheIsValid ¶ added in v0.3.2
func (*Consul) CacheLookup ¶ added in v0.3.0
CacheLookup()
func (*Consul) CacheProcessDeregister ¶ added in v0.3.2
CacheProcessDeregister()
Calculate the validity of the entry
func (*Consul) Deregister ¶
func (c *Consul) Deregister()
Deregister()
Deregister services that no longer exist
Click to show internal directories.
Click to hide internal directories.