firestore

package
v0.0.0-...-5782500 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirestoreDB

type FirestoreDB struct {
	// contains filtered or unexported fields
}

FirestoreDB is a louhi.DB implementation backed by Firestore.

func NewDB

func NewDB(ctx context.Context, project, app, instance string) (*FirestoreDB, error)

NewDB returns a louhi.DB implementation backed by Firestore.

func (*FirestoreDB) GetFlowExecution

func (db *FirestoreDB) GetFlowExecution(ctx context.Context, id string) (*louhi.FlowExecution, error)

GetFlowExecution implements DB.

func (*FirestoreDB) GetLatestFlowExecutions

func (db *FirestoreDB) GetLatestFlowExecutions(ctx context.Context) (map[string]*louhi.FlowExecution, error)

GetLatestFlowExecutions implements DB.

func (*FirestoreDB) PutFlowExecution

func (db *FirestoreDB) PutFlowExecution(ctx context.Context, flow *louhi.FlowExecution) error

PutFlowExecution implements DB.

Jump to

Keyboard shortcuts

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