Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSKeyConverter ¶
DSKeyConverter can return a datastore.Key.
type Filter ¶
type Filter struct { Filter string Value interface{} }
Filter is a conditional filter on query results.
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator is the result of running a query.
func NewIterator ¶
NewIterator returns a new Iterator by executing the passed-in query.
type Key ¶
Key represents the identifier for an entity.
func GetEntitiesKeys ¶
GetEntitiesKeys extracts a sequence of Key from the given entities.
func GetEntityKey ¶
GetEntityKey extracts a new Key from the given entity.
func ImportKeys ¶
ImportKeys creates a sequence of Key from a sequence of datastore.Key.
func (*Key) Incomplete ¶
Incomplete returns whether the key does not refer to a stored entity. In particular, whether the key has a zero StringID and a zero IntID.
type KeyState ¶
type KeyState struct { // Synced is the last time the entity was read/written. Synced *time.Time // Error contains an error if the key could not be loaded/saved. Error error }
KeyState represents meta data of the datastore operation the key originates from, if any.
type Opts ¶
type Opts struct { // CompleteKeys is whether an entity's key must be set before writing. CompleteKeys bool // NoGlobalCache is whether memcache is used. NoGlobalCache bool }
Opts represents options that change the behaviour of datastore operations.
type Query ¶
type Query struct { Ancestor *Key Filter []Filter Order []Order Projection []string TypeOf QueryType Distinct bool Eventual bool Limit int Offset int Start string End string // contains filtered or unexported fields }
Query represents a datastore query.