Documentation ¶
Index ¶
- func NewRethinkDBStateStore(logger logger.Logger) state.Store
- type RethinkDB
- func (s *RethinkDB) BulkDelete(ctx context.Context, req []state.DeleteRequest) error
- func (s *RethinkDB) BulkGet(ctx context.Context, req []state.GetRequest) (bool, []state.BulkGetResponse, error)
- func (s *RethinkDB) BulkSet(ctx context.Context, req []state.SetRequest) error
- func (s *RethinkDB) Delete(ctx context.Context, req *state.DeleteRequest) error
- func (s *RethinkDB) Features() []state.Feature
- func (s *RethinkDB) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
- func (s *RethinkDB) GetComponentMetadata() map[string]string
- func (s *RethinkDB) Init(metadata state.Metadata) error
- func (s *RethinkDB) Multi(ctx context.Context, req *state.TransactionalStateRequest) error
- func (s *RethinkDB) Set(ctx context.Context, req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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) Features ¶ added in v1.1.1
Features returns the features available in this state store.
func (*RethinkDB) Get ¶
func (s *RethinkDB) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get retrieves a RethinkDB KV item.
func (*RethinkDB) GetComponentMetadata ¶ added in v1.10.1
func (*RethinkDB) Init ¶
Init parses metadata, initializes the RethinkDB client, and ensures the state table exists.
Click to show internal directories.
Click to hide internal directories.