cassandra

package
v0.0.0-...-a13f559 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

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) Close

func (p *HealthProvider) Close() error

Close NO-OP.

func (*HealthProvider) IsHealthy

func (p *HealthProvider) IsHealthy() error

IsHealthy returns the current health state of the provider.

func (*HealthProvider) Name

func (p *HealthProvider) Name() string

Name of the HealthProvider

func (*HealthProvider) Start

func (p *HealthProvider) Start() error

Start initiates the provider's internal checker.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL