firestore

package
v1.88.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSuchEntity = errors.New("firestore: no such entity")

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func Open

func Open(googleCloudProject string) (*Database, error)

func (*Database) Entity added in v1.60.0

func (db *Database) Entity(gold Model) *EntityKV

func (*Database) ProtoKV

func (db *Database) ProtoKV(collection, key string) *ProtoKV

func (*Database) StringKV

func (db *Database) StringKV(collection, key string) *StringKV

type EntityKV added in v1.60.0

type EntityKV struct {
	// contains filtered or unexported fields
}

func (*EntityKV) Delete added in v1.60.0

func (kv *EntityKV) Delete(ctx context.Context, model Model) error

func (*EntityKV) Get added in v1.60.0

func (kv *EntityKV) Get(ctx context.Context, model Model) error

func (*EntityKV) Put added in v1.60.0

func (kv *EntityKV) Put(ctx context.Context, model Model) error

func (*EntityKV) Query added in v1.70.1

func (kv *EntityKV) Query() Query

type Model added in v1.60.0

type Model interface {
	Collection() string
	Key() string
}

type ProtoKV

type ProtoKV struct {
	// contains filtered or unexported fields
}

func (*ProtoKV) Delete

func (kv *ProtoKV) Delete(ctx context.Context) error

func (*ProtoKV) Get

func (kv *ProtoKV) Get(ctx context.Context, model proto.Message) error

func (*ProtoKV) GetBytes

func (kv *ProtoKV) GetBytes(ctx context.Context) ([]byte, error)

func (*ProtoKV) Put

func (kv *ProtoKV) Put(ctx context.Context, model proto.Message) error

type Query added in v1.70.2

type Query = firestore.Query

type StringKV

type StringKV struct {
	// contains filtered or unexported fields
}

func (*StringKV) Get

func (kv *StringKV) Get(ctx context.Context, content *string) error

func (*StringKV) Put

func (kv *StringKV) Put(ctx context.Context, content string) error

Jump to

Keyboard shortcuts

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