package firestore

import "github.com/bketelsen/crypt/backend/firestore"

Index

Types

type Client

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

func New

func New(machines []string) (*Client, error)

func (*Client) Get

func (c *Client) Get(path string) ([]byte, error)

func (*Client) GetWithContext

func (c *Client) GetWithContext(ctx context.Context, path string) ([]byte, error)

func (*Client) List

func (c *Client) List(collection string) (backend.KVPairs, error)

func (*Client) ListWithContext

func (c *Client) ListWithContext(ctx context.Context, collection string) (backend.KVPairs, error)

func (*Client) Set

func (c *Client) Set(path string, value []byte) error

func (*Client) SetWithContext

func (c *Client) SetWithContext(ctx context.Context, path string, value []byte) error

func (*Client) Watch

func (c *Client) Watch(path string, stop chan bool) <-chan *backend.Response

func (*Client) WatchWithContext

func (c *Client) WatchWithContext(ctx context.Context, path string, stop chan bool) <-chan *backend.Response

Source Files

firestore.go

Version
v0.0.5 (latest)
Published
Oct 8, 2021
Platform
linux/amd64
Imports
8 packages
Last checked
6 hours ago

Tools for package owners.