gaesettings

package
v0.0.0-...-678bb0e Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

See github.com/luci/luci-go/server/settings for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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(c context.Context) (*settings.Bundle, error)

FetchAllSettings fetches all latest settings at once.

func (Storage) GetConsistencyTime

func (s Storage) GetConsistencyTime(c 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(c 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