firestore

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 5 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 {
	Context context.Context
	// contains filtered or unexported fields
}

Client for secrets helper

func New

func New(projectID string) (Client, error)

New secrets helper

func (*Client) GetAllDocumentsInCollection added in v0.0.2

func (c *Client) GetAllDocumentsInCollection(collectionID string) ([]byte, error)

GetAllDocumentsInCollection returns all documents in a given collection

func (*Client) NewDocument

func (c *Client) NewDocument(collectionID string, document KeyValue) error

NewDocument add a new document to a collection, creating the collection if it doesn't exist

type KeyValue added in v0.0.2

type KeyValue map[string]interface{}

KeyValue is a slice of keyvalue pairs

Jump to

Keyboard shortcuts

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