firestore

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 9 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(machines []string, opts ...OptionFunc) (*Client, error)

func (*Client) Get

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

func (*Client) Set

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

func (*Client) Watch

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

type OptionFunc

type OptionFunc func(client *Client)

func WithWatchInterval

func WithWatchInterval(duration time.Duration) OptionFunc

Jump to

Keyboard shortcuts

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