cassandra

package
v1.8.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cassandra

type Cassandra struct {
	state.DefaultBulkStore
	// contains filtered or unexported fields
}

Cassandra is a state store implementation for Apache Cassandra.

func NewCassandraStateStore

func NewCassandraStateStore(logger logger.Logger) *Cassandra

NewCassandraStateStore returns a new cassandra state store.

func (*Cassandra) Delete

func (c *Cassandra) Delete(req *state.DeleteRequest) error

Delete performs a delete operation.

func (*Cassandra) Features added in v1.1.1

func (c *Cassandra) Features() []state.Feature

Features returns the features available in this state store.

func (*Cassandra) Get

func (c *Cassandra) Get(req *state.GetRequest) (*state.GetResponse, error)

Get retrieves state from cassandra with a key.

func (*Cassandra) Init

func (c *Cassandra) Init(metadata state.Metadata) error

Init performs metadata and connection parsing.

func (*Cassandra) Set

func (c *Cassandra) Set(req *state.SetRequest) error

Set saves state into cassandra.

Jump to

Keyboard shortcuts

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