Documentation ¶
Index ¶
- type AutoManagedProvider
- func (p *AutoManagedProvider) DeregisterMember() error
- func (p *AutoManagedProvider) GetHealthStatus() error
- func (p *AutoManagedProvider) Shutdown(graceful bool) error
- func (p *AutoManagedProvider) StartClient(cluster *cluster.Cluster) error
- func (p *AutoManagedProvider) StartMember(cluster *cluster.Cluster) error
- func (p *AutoManagedProvider) UpdateTTL()
- type NodeModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoManagedProvider ¶
type AutoManagedProvider struct {
// contains filtered or unexported fields
}
func NewWithConfig ¶
func NewWithConfig(refreshTTL time.Duration, autoManPort int, hosts ...string) *AutoManagedProvider
NewWithConfig creates an Automanaged Provider that connects to an all the hosts
func NewWithTesting ¶
func NewWithTesting(refreshTTL time.Duration, autoManPort int, activeProvider *echo.Echo, hosts ...string) *AutoManagedProvider
NewWithTesting creates a testable provider
func (*AutoManagedProvider) DeregisterMember ¶
func (p *AutoManagedProvider) DeregisterMember() error
DeregisterMember set the shutdown to true preventing anymore TTL updates
func (*AutoManagedProvider) GetHealthStatus ¶
func (p *AutoManagedProvider) GetHealthStatus() error
GetHealthStatus returns an error if the cluster health status has problems
func (*AutoManagedProvider) Shutdown ¶
func (p *AutoManagedProvider) Shutdown(graceful bool) error
Shutdown set the shutdown to true preventing anymore TTL updates
func (*AutoManagedProvider) StartClient ¶
func (p *AutoManagedProvider) StartClient(cluster *cluster.Cluster) error
func (*AutoManagedProvider) StartMember ¶
func (p *AutoManagedProvider) StartMember(cluster *cluster.Cluster) error
func (*AutoManagedProvider) UpdateTTL ¶
func (p *AutoManagedProvider) UpdateTTL()
UpdateTTL sets up an endpoint to respond to other members
Click to show internal directories.
Click to hide internal directories.