database

package
v0.0.0-...-72ae066 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Get(collection, name string, i interface{}) error
	Set(collection, name string, i interface{}) error
	Filter(collection string, op, prefix string, filters map[string]interface{}) ([]command.RosterPayload, error)
	Delete(collection, name string) error
}

type Firestore

type Firestore struct {
	*firestore.Client
}

func NewFirestore

func NewFirestore(projectID string) (Firestore, error)

func (Firestore) Delete

func (f Firestore) Delete(collection, name string) error

func (Firestore) Filter

func (f Firestore) Filter(collection string, op, prefix string, filters map[string]interface{}) ([]command.RosterPayload, error)

func (Firestore) Get

func (f Firestore) Get(collection, name string, i interface{}) error

func (Firestore) Set

func (f Firestore) Set(collection, name string, i interface{}) error

type Map

type Map map[string][]byte

func NewMap

func NewMap() (Map, error)

func (Map) Delete

func (f Map) Delete(collection, name string) error

func (Map) Filter

func (f Map) Filter(collection string, op, prefix string, filters map[string]interface{}) ([]command.RosterPayload, error)

func (Map) Get

func (f Map) Get(collection, name string, i interface{}) error

func (Map) Set

func (f Map) Set(collection, name string, i interface{}) error

Jump to

Keyboard shortcuts

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