Versions in this module Expand all Collapse all v0 v0.4.0 Jan 15, 2022 Changes in this version + type Autoupdate struct + func New(datastore Datastore, restricter RestrictMiddleware, voteAddr string, ...) *Autoupdate + func (a *Autoupdate) Connect(userID int, kb KeysBuilder) DataProvider + func (a *Autoupdate) LastID() uint64 + func (a *Autoupdate) PruneOldData(ctx context.Context) + func (a *Autoupdate) ResetCache(ctx context.Context) + type DataProvider func(ctx context.Context) (map[string][]byte, error) + type Datastore interface + Get func(ctx context.Context, keys ...string) (map[string][]byte, error) + RegisterCalculatedField func(field string, ...) + RegisterChangeListener func(f func(map[string][]byte) error) + RequestKeys func(url string, keys []string) (map[string][]byte, error) + ResetCache func() + type KeysBuilder interface + Keys func() []string + Update func(ctx context.Context, ds datastore.Getter) error + type RestrictMiddleware func(getter datastore.Getter, uid int) datastore.Getter