docs

package
v0.0.0-...-45a98ea Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENDPOINT_INSERT = "https://europe-west2-zoo-dev-01.cloudfunctions.net/func_ingest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketClient

type BucketClient struct {
	*Client
	// contains filtered or unexported fields
}

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Bucket

func (self *Client) Bucket(bucketName string) *BucketClient

func (*Client) InsertDocument

func (self *Client) InsertDocument(doc *Document) error

type Document

type Document struct {
	Bucket   string
	Lat, Lng float64
	Place    []string
	Parent   string
	Class    string
	Data     interface{}
}

func EmptyDocument

func EmptyDocument() *Document

func New

func New(salt, bucketName string) *Document

func (*Document) ID

func (self *Document) ID() string

func (*Document) TimePrefix

func (self *Document) TimePrefix(t time.Time) string

Jump to

Keyboard shortcuts

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