v0.0.0-...-51f9457 Latest Latest

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0



Package gaesettings implements settings.Storage interface on top of GAE datastore.

By default, gaesettings must have its handlers installed into the "default" AppEngine module, and must be running on an instance with read/write datastore access.

See for more details.

Deprecated: either use command line flags for infrequently changing configuration or use the LUCI Config service via module to fetch configs dynamically from the LUCI Config.



This section is empty.


This section is empty.


This section is empty.


type Storage

type Storage struct{}

Storage knows how to store JSON blobs with settings in the datastore.

It implements server/settings.EventualConsistentStorage interface.

func (Storage) FetchAllSettings

func (s Storage) FetchAllSettings(ctx context.Context) (*settings.Bundle, time.Duration, error)

FetchAllSettings fetches all latest settings at once.

func (Storage) GetConsistencyTime

func (s Storage) GetConsistencyTime(ctx context.Context) (time.Time, error)

GetConsistencyTime returns "last modification time" + "expiration period".

It indicates moment in time when last setting change is fully propagated to all instances.

Returns zero time if there are no settings stored.

func (Storage) UpdateSetting

func (s Storage) UpdateSetting(ctx context.Context, key string, value json.RawMessage, who, why string) error

UpdateSetting updates a setting at the given key.

Jump to

Keyboard shortcuts

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