firestore

package
v0.0.0-...-ebb33e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFirestoreStateStore

func NewFirestoreStateStore(logger logger.Logger) state.Store

Types

type Firestore

type Firestore struct {
	state.BulkStore
	// contains filtered or unexported fields
}

Firestore State Store.

func (*Firestore) Delete

func (f *Firestore) Delete(ctx context.Context, req *state.DeleteRequest) error

Delete performs a delete operation.

func (*Firestore) Features

func (f *Firestore) Features() []state.Feature

Features returns the features available in this state store.

func (*Firestore) Get

Get retrieves state from Firestore with a key (Always strong consistency).

func (*Firestore) GetComponentMetadata

func (f *Firestore) GetComponentMetadata() map[string]string

func (*Firestore) Init

func (f *Firestore) Init(ctx context.Context, metadata state.Metadata) error

Init does metadata and connection parsing.

func (*Firestore) Set

func (f *Firestore) Set(ctx context.Context, req *state.SetRequest) error

Set saves state into Firestore.

type StateEntity

type StateEntity struct {
	Value string
}

type StateEntityNoIndex

type StateEntityNoIndex struct {
	Value string `datastore:",noindex"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL