Documentation ¶
Index ¶
- type RethinkDB
- func (s *RethinkDB) BulkDelete(req []state.DeleteRequest) error
- func (s *RethinkDB) BulkSet(req []state.SetRequest) error
- func (s *RethinkDB) Delete(req *state.DeleteRequest) error
- func (s *RethinkDB) Get(req *state.GetRequest) (*state.GetResponse, error)
- func (s *RethinkDB) Init(metadata state.Metadata) error
- func (s *RethinkDB) Multi(reqs []state.TransactionalRequest) error
- func (s *RethinkDB) Set(req *state.SetRequest) error
- type StateConfig
- type StateRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RethinkDB ¶
type RethinkDB struct {
// contains filtered or unexported fields
}
RethinkDB is a state store implementation for RethinkDB.
func NewRethinkDBStateStore ¶
NewRethinkDBStateStore returns a new RethinkDB state store.
func (*RethinkDB) BulkDelete ¶
func (s *RethinkDB) BulkDelete(req []state.DeleteRequest) error
BulkDelete performs a bulk delete operation
func (*RethinkDB) BulkSet ¶
func (s *RethinkDB) BulkSet(req []state.SetRequest) error
BulkSet performs a bulk save operation
func (*RethinkDB) Delete ¶
func (s *RethinkDB) Delete(req *state.DeleteRequest) error
Delete performes a RethinkDB KV delete operation
func (*RethinkDB) Get ¶
func (s *RethinkDB) Get(req *state.GetRequest) (*state.GetResponse, error)
Get retrieves a RethinkDB KV item
func (*RethinkDB) Init ¶
Init parses metadata, initializes the RethinkDB client, and ensures the state table exists
type StateConfig ¶ added in v0.9.111
type StateConfig struct { r.ConnectOpts Archive bool `json:"archive"` }
StateConfig represents configuration for RethinkDB
type StateRecord ¶ added in v0.9.111
type StateRecord struct { ID string `json:"id" rethinkdb:"id"` TS int64 `json:"timestamp" rethinkdb:"timestamp"` Hash string `json:"hash,omitempty" rethinkdb:"hash,omitempty"` Data interface{} `json:"data,omitempty" rethinkdb:"data,omitempty"` }
StateRecord represents a single state record
Click to show internal directories.
Click to hide internal directories.