cassandra

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCassandraStateStore

func NewCassandraStateStore(logger logger.Logger) state.Store

NewCassandraStateStore returns a new cassandra state store.

Types

type Cassandra

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

Cassandra is a state store implementation for Apache Cassandra.

func (*Cassandra) Close added in v1.12.0

func (c *Cassandra) Close() error

Close the connection to Cassandra.

func (*Cassandra) Delete

func (c *Cassandra) Delete(ctx context.Context, 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

Get retrieves state from cassandra with a key.

func (*Cassandra) GetComponentMetadata added in v1.10.1

func (c *Cassandra) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

func (*Cassandra) Init

func (c *Cassandra) Init(_ context.Context, metadata state.Metadata) error

Init performs metadata and connection parsing.

func (*Cassandra) Set

func (c *Cassandra) Set(ctx context.Context, 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