cassandra

package
v5.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) func(ctx context.Context) error

New creates new Cassandra health check that verifies that a connection exists and can be used to query the cluster.

Types

type Config

type Config struct {
	// Hosts is a list of Cassandra hosts. Optional if Session is supplied.
	Hosts []string
	// Keyspace is the Cassandra keyspace to which you want to connect. Optional if Session is supplied.
	Keyspace string
	// Session is a gocql session and can be used in place of Hosts and Keyspace. Recommended.
	// Optional if Hosts & Keyspace are supplied.
	Session *gocql.Session
}

Config is the Cassandra checker configuration settings container.

Jump to

Keyboard shortcuts

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