firestore

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx *model.Context, projectID string, databaseID string) (*Client, error)

func (*Client) Close

func (x *Client) Close() error

func (*Client) GetAttrs

func (x *Client) GetAttrs(ctx *model.Context, ns types.Namespace) (model.Attributes, error)

GetAttrs implements interfaces.Database.

func (*Client) GetWorkflow added in v0.0.15

func (x *Client) GetWorkflow(ctx *model.Context, id types.WorkflowID) (*model.WorkflowRecord, error)

func (*Client) GetWorkflows added in v0.0.15

func (x *Client) GetWorkflows(ctx *model.Context, offset, limit int) ([]model.WorkflowRecord, error)

func (*Client) Lock

func (x *Client) Lock(ctx *model.Context, ns types.Namespace, timeout time.Time) error

Lock implements interfaces.Database.

func (*Client) PutAttrs

func (x *Client) PutAttrs(ctx *model.Context, ns types.Namespace, attrs model.Attributes) error

PutAttrs implements interfaces.Database.

func (*Client) PutWorkflow added in v0.0.15

func (x *Client) PutWorkflow(ctx *model.Context, workflow model.WorkflowRecord) error

func (*Client) Unlock

func (x *Client) Unlock(ctx *model.Context, ns types.Namespace) error

Unlock implements interfaces.Database.

Jump to

Keyboard shortcuts

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