Documentation
¶
Index ¶
- func NewFirestoreStateStore(logger logger.Logger) state.Store
- type Firestore
- func (f *Firestore) Delete(ctx context.Context, req *state.DeleteRequest) error
- func (f *Firestore) Features() []state.Feature
- func (f *Firestore) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
- func (f *Firestore) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (f *Firestore) Init(ctx context.Context, metadata state.Metadata) error
- func (f *Firestore) Set(ctx context.Context, req *state.SetRequest) error
- type StateEntity
- type StateEntityNoIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Firestore ¶
Firestore State Store.
func (*Firestore) Features ¶ added in v1.1.1
Features returns the features available in this state store.
func (*Firestore) Get ¶
func (f *Firestore) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)
Get retrieves state from Firestore with a key (Always strong consistency).
func (*Firestore) GetComponentMetadata ¶ added in v1.10.1
func (f *Firestore) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
type StateEntity ¶
type StateEntity struct {
Value string
}
type StateEntityNoIndex ¶ added in v1.10.1
type StateEntityNoIndex struct {
Value string `datastore:",noindex"`
}
Click to show internal directories.
Click to hide internal directories.