cassandra

package
v0.9.111 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: MIT 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 {
	// 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) BulkDelete

func (c *Cassandra) BulkDelete(req []state.DeleteRequest) error

BulkDelete performs a bulk delete operation

func (*Cassandra) BulkSet

func (c *Cassandra) BulkSet(req []state.SetRequest) error

BulkSet performs a bulks save operation

func (*Cassandra) Delete

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

Delete performs a delete operation

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