cas

package
v0.0.0-...-0fbfc04 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnectionTimeout = 30 * time.Second

	SimpleWithReplication = "{'class': 'SimpleStrategy', 'replication_factor': '1'}"
)

ConnectionTimeout s.e.

Variables

View Source
var DefaultConsistency = gocql.Quorum

Functions

func Provide

func Provide(casPar CassandraParamsType) (asf istorage.IAppStorageFactory, err error)

Types

type CassandraParamsType

type CassandraParamsType struct {
	// Comma separated list of hosts
	Hosts        string
	Port         int
	Username     string
	Pwd          string
	ProtoVersion int
	CQLVersion   string
	NumRetries   int
	DC           string

	// e.g. "{ 'class' : 'SimpleStrategy', 'replication_factor' : 1 }"
	KeyspaceWithReplication string
}

Jump to

Keyboard shortcuts

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