Documentation ¶
Index ¶
- func New(logger logger.Logger) state.Store
- type CockroachDB
- func (c *CockroachDB) BulkDelete(req []state.DeleteRequest) error
- func (c *CockroachDB) BulkGet(req []state.GetRequest) (bool, []state.BulkGetResponse, error)
- func (c *CockroachDB) BulkSet(req []state.SetRequest) error
- func (c *CockroachDB) Close() error
- func (c *CockroachDB) Delete(req *state.DeleteRequest) error
- func (c *CockroachDB) Features() []state.Feature
- func (c *CockroachDB) Get(req *state.GetRequest) (*state.GetResponse, error)
- func (c *CockroachDB) Init(metadata state.Metadata) error
- func (c *CockroachDB) Multi(request *state.TransactionalStateRequest) error
- func (c *CockroachDB) Ping() error
- func (c *CockroachDB) Query(req *state.QueryRequest) (*state.QueryResponse, error)
- func (c *CockroachDB) Set(req *state.SetRequest) error
- type Query
- func (q *Query) Finalize(filters string, storeQuery *query.Query) error
- func (q *Query) VisitAND(filter *query.AND) (string, error)
- func (q *Query) VisitEQ(filter *query.EQ) (string, error)
- func (q *Query) VisitIN(filter *query.IN) (string, error)
- func (q *Query) VisitOR(filter *query.OR) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CockroachDB ¶
type CockroachDB struct {
// contains filtered or unexported fields
}
CockroachDB state store.
func (*CockroachDB) BulkDelete ¶
func (c *CockroachDB) BulkDelete(req []state.DeleteRequest) error
BulkDelete removes multiple entries from the store.
func (*CockroachDB) BulkGet ¶
func (c *CockroachDB) BulkGet(req []state.GetRequest) (bool, []state.BulkGetResponse, error)
BulkGet performs a bulks get operations.
func (*CockroachDB) BulkSet ¶
func (c *CockroachDB) BulkSet(req []state.SetRequest) error
BulkSet adds/updates multiple entities on store.
func (*CockroachDB) Delete ¶
func (c *CockroachDB) Delete(req *state.DeleteRequest) error
Delete removes an entity from the store.
func (*CockroachDB) Features ¶
func (c *CockroachDB) Features() []state.Feature
Features returns the features available in this state store.
func (*CockroachDB) Get ¶
func (c *CockroachDB) Get(req *state.GetRequest) (*state.GetResponse, error)
Get returns an entity from store.
func (*CockroachDB) Init ¶
func (c *CockroachDB) Init(metadata state.Metadata) error
Init initializes the CockroachDB state store.
func (*CockroachDB) Multi ¶
func (c *CockroachDB) Multi(request *state.TransactionalStateRequest) error
Multi handles multiple transactions. Implements TransactionalStore.
func (*CockroachDB) Query ¶
func (c *CockroachDB) Query(req *state.QueryRequest) (*state.QueryResponse, error)
Query executes a query against store.
func (*CockroachDB) Set ¶
func (c *CockroachDB) Set(req *state.SetRequest) error
Set adds/updates an entity on store.
Click to show internal directories.
Click to hide internal directories.