Documentation ¶
Overview ¶
Package readonly implements a filter that enforces read-only accesses to services.
This can be useful in hybrid environments where one cluster wants to read from a cache-backed datastore, but cannot modify the cache, so reads are safe and direct, but writes would create a state where the cached values are invalid.
This happens when mixing AppEngine datastore/memcache with Cloud Datastore readers.
Package readonly implements a filter that enforces read-only accesses to datastore.
This is useful in hybrid environments where one cluster wants to read from a cache-backed datastore, but cannot modify the cache, so reads are safe and direct, but writes would create a state where the cached values are invalid. This happens when mixing AppEngine datastore/memcache with Cloud Datastore readers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrReadOnly = errors.New("readonly: datastore is read-only")
ErrReadOnly is an error returned in response to mutating datastore operations.