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() map[string]string
- 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) 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 ¶
type StateEntity ¶
type StateEntity struct {
Value string
}
type StateEntityNoIndex ¶
type StateEntityNoIndex struct {
Value string `datastore:",noindex"`
}
Click to show internal directories.
Click to hide internal directories.