Documentation ¶
Index ¶
- Constants
- type ConsulAdapter
- func (r *ConsulAdapter) Deregister(service *bridge.Service) error
- func (r *ConsulAdapter) Ping() error
- func (r *ConsulAdapter) Refresh(service *bridge.Service) error
- func (r *ConsulAdapter) Register(service *bridge.Service) error
- func (r *ConsulAdapter) Services() ([]*bridge.Service, error)
- func (r *ConsulAdapter) SetupHealthCheck(service *bridge.Service, healthCheck *bridge.TtlHealthCheck) error
- type Factory
Constants ¶
View Source
const DefaultInterval = "10s"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulAdapter ¶
type ConsulAdapter struct {
// contains filtered or unexported fields
}
func (*ConsulAdapter) Deregister ¶
func (r *ConsulAdapter) Deregister(service *bridge.Service) error
func (*ConsulAdapter) Ping ¶
func (r *ConsulAdapter) Ping() error
Ping will try to connect to consul by attempting to retrieve the current leader.
func (*ConsulAdapter) SetupHealthCheck ¶
func (r *ConsulAdapter) SetupHealthCheck(service *bridge.Service, healthCheck *bridge.TtlHealthCheck) error
Click to show internal directories.
Click to hide internal directories.