structs

package
v0.0.0-...-b2bda40 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataToCity

func DataToCity(c *firestore.Client) bool

func DataToPC

func DataToPC(c *firestore.Client) bool

func Do0

func Do0(c *firestore.Client)

func Do1

func Do1(c *firestore.Client)

func Do2

func Do2(c *firestore.Client)

func Do3

func Do3(c *firestore.Client)

func InitCityFull

func InitCityFull(c *firestore.Client) bool

func InitCityPartial

func InitCityPartial(c *firestore.Client) bool

func InitPCFull

func InitPCFull(c *firestore.Client) bool

func InitPCPartial

func InitPCPartial(c *firestore.Client) bool

func SetInit

func SetInit(dst *Init)

func SetUpdate

func SetUpdate(dst *Update)

Types

type City

type City struct {
	Name string   `firestore:"name"`
	Tags []string `firestore:"tags"`
	Pop  int64    `firestore:"population"`
}

type Init

type Init struct {
	CreatedAt time.Time `firestore:"createdAt"`
	UpdatedAt time.Time `firestore:"updatedAt"`
}

type InitCity

type InitCity struct {
	Init
	City
}

type InitPC

type InitPC struct {
	Init
	PC
}

type PC

type PC struct {
	Name *string  `firestore:"name"`
	Tags []string `firestore:"tags"`
	Pop  *int64   `firestore:"population"`
}

type Update

type Update struct {
	UpdatedAt time.Time `firestore:"updatedAt"`
}

type UpdateCity

type UpdateCity struct {
	Update
	City
}

type UpdatePC

type UpdatePC struct {
	Update
	PC
}

Jump to

Keyboard shortcuts

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