Documentation ¶
Index ¶
- Constants
- func NewCassandra(config Config, metricsIn metric.Measures, lc fx.Lifecycle, logger *zap.Logger) (store.S, error)
- type Client
- func (s *Client) Close()
- func (s *Client) Delete(key model.Key) (store.OwnableItem, error)
- func (s *Client) Get(key model.Key) (store.OwnableItem, error)
- func (s *Client) GetAll(bucket string) (map[string]store.OwnableItem, error)
- func (s *Client) Ping() error
- func (s *Client) Push(key model.Key, item store.OwnableItem) error
- type Config
Constants ¶
View Source
const (
Yugabyte = "yugabyte"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.5.0
type Client struct {
// contains filtered or unexported fields
}
func CreateCassandraClient ¶
type Config ¶ added in v0.5.0
type Config struct { // Hosts to connect to. Must have at least one Hosts []string // Database aka Keyspace for cassandra Database string // OpTimeout OpTimeout time.Duration // SSLRootCert used for enabling tls to the cluster. SSLKey, and SSLCert must also be set. SSLRootCert string // SSLKey used for enabling tls to the cluster. SSLRootCert, and SSLCert must also be set. SSLKey string // SSLCert used for enabling tls to the cluster. SSLRootCert, and SSLRootCert must also be set. SSLCert string // If you want to verify the hostname and server cert (like a wildcard for cass cluster) then you should turn this on // This option is basically the inverse of InSecureSkipVerify // See InSecureSkipVerify in http://golang.org/pkg/crypto/tls/ for more info EnableHostVerification bool // Username to authenticate into the cluster. Password must also be provided. Username string // Password to authenticate into the cluster. Username must also be provided. Password string // NumRetries for connecting to the db NumRetries int // WaitTimeMult the amount of time to wait before retrying to connect to the db WaitTimeMult time.Duration // MaxConnsPerHost max number of connections per host MaxConnsPerHost int }
Click to show internal directories.
Click to hide internal directories.