firestore

package
v1.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firestore

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

Firestore State Store

func NewFirestoreStateStore

func NewFirestoreStateStore(logger logger.Logger) *Firestore

func (*Firestore) Delete

func (f *Firestore) Delete(req *state.DeleteRequest) error

Delete performs a delete operation

func (*Firestore) Get

func (f *Firestore) Get(req *state.GetRequest) (*state.GetResponse, error)

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

func (*Firestore) Init

func (f *Firestore) Init(metadata state.Metadata) error

Init does metadata and connection parsing

func (*Firestore) Set

func (f *Firestore) Set(req *state.SetRequest) error

Set saves state into Firestore with retry

type StateEntity

type StateEntity struct {
	Value string
}

Jump to

Keyboard shortcuts

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