gofirebase

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FB

type FB struct {
	sync.Mutex
	Credentials   string
	App           *firebase.App
	StorageBucket string

	Bucket *bucket.Bucket
	// contains filtered or unexported fields
}

Firebase struct

func (*FB) CreateApp

func (fb *FB) CreateApp(ctx context.Context) (*firebase.App, error)

func (*FB) Find

func (fb *FB) Find(ctx context.Context, collection, path, op string, value interface{}) (map[string]interface{}, error)

func (*FB) FindCol2Doc2 added in v1.0.2

func (fb *FB) FindCol2Doc2(ctx context.Context, collection, Doc, col2, path, op string, value interface{}) (map[string]interface{}, error)

func (*FB) ReadCol added in v1.0.3

func (fb *FB) ReadCol(ctx context.Context, path string) ([]map[string]interface{}, error)

func (*FB) ReadMap

func (fb *FB) ReadMap(ctx context.Context, path string, Doc string) (*firestore.DocumentSnapshot,
	error)

func (*FB) ReadMapCol2Doc2 added in v1.0.2

func (fb *FB) ReadMapCol2Doc2(ctx context.Context, path, Doc, col2, Doc2 string) (*firestore.DocumentSnapshot,
	error)

func (*FB) WriteMap

func (fb *FB) WriteMap(ctx context.Context, doc map[string]interface{}, collection string, Doc string)

func (*FB) WriteMapCol2Doc2 added in v1.0.1

func (fb *FB) WriteMapCol2Doc2(ctx context.Context, doc map[string]interface{},
	collection string, Doc string, collection2, Doc2 string)

Jump to

Keyboard shortcuts

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