Documentation ¶
Overview ¶
Package cassandra provides a default health monitor for gocql Sessions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthProvider ¶
type HealthProvider struct {
// contains filtered or unexported fields
}
HealthProvider is an implementation of the health.Provider interface for Cassandra.
func NewHealthProvider ¶
func NewHealthProvider(session *gocql.Session) *HealthProvider
NewHealthProvider returns a new Cassandra health.Provider instance.
func (*HealthProvider) IsHealthy ¶
func (p *HealthProvider) IsHealthy() error
IsHealthy returns the current health state of the provider.
func (*HealthProvider) Start ¶
func (p *HealthProvider) Start() error
Start initiates the provider's internal checker.
Click to show internal directories.
Click to hide internal directories.