Documentation ¶
Index ¶
- Variables
- func NewRedisStateStore(log logger.Logger) state.Store
- type Query
- func (q *Query) Finalize(filters string, qq *query.Query) error
- func (q *Query) VisitAND(f *query.AND) (string, error)
- func (q *Query) VisitEQ(f *query.EQ) (string, error)
- func (q *Query) VisitGT(f *query.GT) (string, error)
- func (q *Query) VisitGTE(f *query.GTE) (string, error)
- func (q *Query) VisitIN(f *query.IN) (string, error)
- func (q *Query) VisitLT(f *query.LT) (string, error)
- func (q *Query) VisitLTE(f *query.LTE) (string, error)
- func (q *Query) VisitNEQ(f *query.NEQ) (string, error)
- func (q *Query) VisitOR(f *query.OR) (string, error)
- type StateStore
- func (r *StateStore) Close() error
- func (r *StateStore) Delete(ctx context.Context, req *state.DeleteRequest) error
- func (r *StateStore) Features() []state.Feature
- func (r *StateStore) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
- func (r *StateStore) GetComponentMetadata() (metadataInfo daprmetadata.MetadataMap)
- func (r *StateStore) Init(ctx context.Context, metadata state.Metadata) error
- func (r *StateStore) Multi(ctx context.Context, request *state.TransactionalStateRequest) error
- func (r *StateStore) Ping(ctx context.Context) error
- func (r *StateStore) Query(ctx context.Context, req *state.QueryRequest) (*state.QueryResponse, error)
- func (r *StateStore) Set(ctx context.Context, req *state.SetRequest) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMultipleSortBy error = errors.New("multiple SORTBY steps are not allowed. Sort multiple fields in a single step")
Functions ¶
Types ¶
type Query ¶ added in v1.7.0
type Query struct {
// contains filtered or unexported fields
}
type StateStore ¶
StateStore is a Redis state store.
func (*StateStore) Close ¶ added in v1.2.0
func (r *StateStore) Close() error
func (*StateStore) Delete ¶
func (r *StateStore) Delete(ctx context.Context, req *state.DeleteRequest) error
Delete performs a delete operation.
func (*StateStore) Features ¶ added in v1.1.1
func (r *StateStore) Features() []state.Feature
Features returns the features available in this state store.
func (*StateStore) Get ¶
func (r *StateStore) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get retrieves state from redis with a key.
func (*StateStore) GetComponentMetadata ¶ added in v1.10.1
func (r *StateStore) GetComponentMetadata() (metadataInfo daprmetadata.MetadataMap)
func (*StateStore) Multi ¶
func (r *StateStore) Multi(ctx context.Context, request *state.TransactionalStateRequest) error
Multi performs a transactional operation. succeeds only if all operations succeed, and fails if one or more operations fail.
func (*StateStore) Query ¶ added in v1.7.0
func (r *StateStore) Query(ctx context.Context, req *state.QueryRequest) (*state.QueryResponse, error)
Query executes a query against store.
func (*StateStore) Set ¶
func (r *StateStore) Set(ctx context.Context, req *state.SetRequest) error
Set saves state into redis.
Click to show internal directories.
Click to hide internal directories.