Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EntityUsers = "users" EntityCards = "card" EntityCompanyInfo = "companyInfo" EntityAppSettings = "appSettings" )
these are the names of the entity types in the Google Cloud Datastore entity types are like tables variables, not constants, because we can edit them in SetConfig
View Source
var Config = config{ ProjectID: "", Development: false, }
Config is a copy of the config struct with some defaults set
Functions ¶
func GetKeyFromID ¶
GetKeyFromID gets the full datastore key from the datastore id for a given entity type id is a numeric value generated automatically by the datastore
func GetKeyFromName ¶
GetKeyFromName gets the full datastore key from the key's name for a given entity type name is an alphanumeric value we provide
func GetNewIncompleteKey ¶
GetNewIncompleteKey generates a new incomplete key for an entity being saved to the datastore for a given entity type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.