config

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GamesDisabledKey = "config:games-disabled"
	FEHashKey        = "config:fe-hash"
	// Front-page announcements. Some of these could later be dynamically
	// updated from a blog or something.
	AnnouncementsKey = "config:static-announcements"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisConfigStore

type RedisConfigStore struct {
	// contains filtered or unexported fields
}

func NewRedisConfigStore

func NewRedisConfigStore(r *redis.Pool) *RedisConfigStore

func (*RedisConfigStore) FEHash added in v0.1.3

func (s *RedisConfigStore) FEHash(ctx context.Context) (string, error)

func (*RedisConfigStore) GamesEnabled

func (s *RedisConfigStore) GamesEnabled(ctx context.Context) (bool, error)

func (*RedisConfigStore) GetAnnouncements added in v0.1.3

func (s *RedisConfigStore) GetAnnouncements(ctx context.Context) ([]*pb.Announcement, error)

func (*RedisConfigStore) SetAnnouncements added in v0.1.3

func (s *RedisConfigStore) SetAnnouncements(ctx context.Context, announcements []*pb.Announcement) error

func (*RedisConfigStore) SetFEHash added in v0.1.3

func (s *RedisConfigStore) SetFEHash(ctx context.Context, hash string) error

func (*RedisConfigStore) SetGamesEnabled

func (s *RedisConfigStore) SetGamesEnabled(ctx context.Context, enabled bool) error

Jump to

Keyboard shortcuts

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