Documentation
¶
Index ¶
- Variables
- type DaprStateCache
- type DaprStateOprator
- func (o *DaprStateOprator) Create(ctx context.Context, key string, value []byte) error
- func (o *DaprStateOprator) Delete(ctx context.Context, key string) error
- func (o *DaprStateOprator) Get(ctx context.Context, key string) ([]byte, string, error)
- func (o *DaprStateOprator) Update(ctx context.Context, key string, value []byte, version string) error
- func (o *DaprStateOprator) Watch(ctx context.Context, key string, cb func(value []byte, version string) error) error
- type Operator
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DaprStateCache ¶ added in v0.4.0
type DaprStateOprator ¶
type DaprStateOprator struct {
// contains filtered or unexported fields
}
func NewDaprStateOperator ¶
func NewDaprStateOperator(interval, storeName string, c dapr.Client) *DaprStateOprator
dapr state.
func (*DaprStateOprator) Delete ¶
func (o *DaprStateOprator) Delete(ctx context.Context, key string) error
type Operator ¶
type Operator interface { // Create KV. Create(ctx context.Context, key string, value []byte) error // Update KV. Update(ctx context.Context, key string, value []byte, version string) error // Get KV. Get(ctx context.Context, key string) (value []byte, version string, err error) // Delete KV. Delete(ctx context.Context, key string) error // Watch KV. Watch(ctx context.Context, key string, cb func(value []byte, version string) error) error }
Operator contains all operations to KV.
Click to show internal directories.
Click to hide internal directories.