gofirebase

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 10 Imported by: 3

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, value string) (map[string]interface{}, error)

func (*FB) ReadMap

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

func (*FB) WriteMap

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

Jump to

Keyboard shortcuts

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