firestore

package
v1.84.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(projectID, collectionID, credsFile string) (
	s document.Service, err error,
)

New returns an instance of Service backed by GC's FireStore.

The returned service's Update method's preconditions only work with document.DefaultUpdatedAtField or document.LowerUpdatedAtField fields. See https://cloud.google.com/firestore/docs/reference/rest/v1/Precondition for more details.

func RunFirestoreEmulator

func RunFirestoreEmulator() (teardown func() error, err error)

RunFirestoreEmulator runs firestore emulator as a subprocess.

It sets FIRESTORE_EMULATOR_HOST so calls to firestore.NewClient know that emulator is to be used instead of real Firestore.

Gloud SDK and the emulator need to be installed first.

Types

This section is empty.

Jump to

Keyboard shortcuts

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