firestore

package
v0.0.0-...-adead0c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add[T any](ctx context.Context, collection string, data T) error

func Client

func Client() *firestore.Client

func Close

func Close() error

func New

func New(ctx context.Context) error

func Query

func Query[T any](ctx context.Context, collection string, opt QueryOption) ([]T, error)

Types

type QueryOption

type QueryOption struct {
	Key     string
	Op      string
	Value   any
	OrderBy string
	Desc    bool
	Limit   int
}

Jump to

Keyboard shortcuts

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