firestore

package module
v0.0.0-...-4badc5a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

[START firestore_count_query]

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	Name       string   `firestore:"name,omitempty"`
	State      string   `firestore:"state,omitempty"`
	Country    string   `firestore:"country,omitempty"`
	Capital    bool     `firestore:"capital,omitempty"`
	Population int64    `firestore:"population,omitempty"`
	Regions    []string `firestore:"regions,omitempty"`
}

City represents a city.

type Counter

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

Counter is a collection of documents (shards) to realize counter with high frequency.

type Shard

type Shard struct {
	Count int
}

Shard is a single counter, which is used in a group of other shards within Counter.

Directories

Path Synopsis
Sample firestore_quickstart demonstrates how to connect to Firestore, and add and list documents.
Sample firestore_quickstart demonstrates how to connect to Firestore, and add and list documents.

Jump to

Keyboard shortcuts

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