rethinkdb

package
v1.10.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRethinkDBStateStore

func NewRethinkDBStateStore(logger logger.Logger) state.Store

NewRethinkDBStateStore returns a new RethinkDB state store.

Types

type RethinkDB

type RethinkDB struct {
	// contains filtered or unexported fields
}

RethinkDB is a state store implementation with transactional support for RethinkDB.

func (*RethinkDB) BulkDelete

func (s *RethinkDB) BulkDelete(ctx context.Context, req []state.DeleteRequest) error

BulkDelete performs a bulk delete operation.

func (*RethinkDB) BulkGet added in v1.0.0

func (s *RethinkDB) BulkGet(ctx context.Context, req []state.GetRequest) (bool, []state.BulkGetResponse, error)

BulkGet performs a bulks get operations.

func (*RethinkDB) BulkSet

func (s *RethinkDB) BulkSet(ctx context.Context, req []state.SetRequest) error

BulkSet performs a bulk save operation.

func (*RethinkDB) Delete

func (s *RethinkDB) Delete(ctx context.Context, req *state.DeleteRequest) error

Delete performes a RethinkDB KV delete operation.

func (*RethinkDB) Features added in v1.1.1

func (s *RethinkDB) Features() []state.Feature

Features returns the features available in this state store.

func (*RethinkDB) Get

Get retrieves a RethinkDB KV item.

func (*RethinkDB) GetComponentMetadata added in v1.10.1

func (s *RethinkDB) GetComponentMetadata() map[string]string

func (*RethinkDB) Init

func (s *RethinkDB) Init(metadata state.Metadata) error

Init parses metadata, initializes the RethinkDB client, and ensures the state table exists.

func (*RethinkDB) Multi

Multi performs multiple operations.

func (*RethinkDB) Set

func (s *RethinkDB) Set(ctx context.Context, req *state.SetRequest) error

Set saves a state KV item.

Jump to

Keyboard shortcuts

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