meta

package
v0.0.0-...-4a11b79 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package meta contains some methods for interacting with GAE's metadata APIs. It only contains an implementation for those metadata APIs we've needed so far, but should be extended to support new ones in the case that we use them.

See metadata docs: https://cloud.google.com/appengine/docs/python/datastore/metadataentityclasses#EntityGroup

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEntityGroupVersion

func GetEntityGroupVersion(ctx context.Context, key *ds.Key) (int64, error)

GetEntityGroupVersion returns the entity group version for the entity group containing root. If the entity group doesn't exist, this function will return zero and a nil error.

Types

type EntityGroupMeta

type EntityGroupMeta struct {
	Parent *ds.Key `gae:"$parent"`

	Version int64 `gae:"__version__"`
	// contains filtered or unexported fields
}

EntityGroupMeta is the model corresponding to the __entity_group__ model in appengine. You shouldn't need to use this struct directly, but instead should use GetEntityGroupVersion.

Jump to

Keyboard shortcuts

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