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

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

    func (*FB) ReadCol

    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

    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

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

    Source Files