Help us shape the future of Go! Take the 2026 Go Developer Survey

firestore

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 16 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 context.Context, projectID string, databaseID string) (*Client, error)

func (*Client) Close

func (x *Client) Close() error

func (*Client) GetAlert

func (x *Client) GetAlert(ctx context.Context, id types.AlertID) (*model.Alert, error)

func (*Client) GetAttrs

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

GetAttrs implements interfaces.Database.

func (*Client) GetWorkflow

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

func (*Client) GetWorkflows

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

func (*Client) Lock

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

Lock implements interfaces.Database.

func (*Client) PutAlert

func (x *Client) PutAlert(ctx context.Context, alert model.Alert) error

func (*Client) PutAttrs

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

PutAttrs implements interfaces.Database.

func (*Client) PutWorkflow

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

func (*Client) Unlock

func (x *Client) Unlock(ctx context.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