util

package
v0.0.0-...-4426b45 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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) 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{})

Jump to

Keyboard shortcuts

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