nosql

package
v0.0.0-...-bdab838 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FireStore

type FireStore struct {
	FireStore *firestore.Client
	// contains filtered or unexported fields
}

func (*FireStore) Add

func (db *FireStore) Add(ctx context.Context, collection string, data map[string]interface{}) error

func (*FireStore) Client

func (db *FireStore) Client() *firestore.Client

func (*FireStore) Delete

func (db *FireStore) Delete(ctx context.Context, collection, doc string) error

func (*FireStore) DeleteField

func (db *FireStore) DeleteField(ctx context.Context, collection, doc, path string) error

func (*FireStore) Set

func (db *FireStore) Set(ctx context.Context, collection, doc string, data map[string]interface{}) error

type NoSQL

type NoSQL interface {
	Client() *firestore.Client
	Add(ctx context.Context, collection string, data map[string]interface{}) error
	Set(ctx context.Context, collection, doc string, data map[string]interface{}) error
	Delete(ctx context.Context, collection, doc string) error
	DeleteField(ctx context.Context, collection, doc, path string) error
}

func OpenFireStore

func OpenFireStore(ctx context.Context, projectID string) (NoSQL, error)

Jump to

Keyboard shortcuts

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