Versions in this module Expand all Collapse all v0 v0.0.1 Nov 9, 2022 Changes in this version + type MemStore struct + func NewMemStore() *MemStore + func (s *MemStore) Get(ctx context.Context, key string) (string, error) + func (s *MemStore) Scanner(ctx context.Context) (Scanner, error) + func (s *MemStore) Set(ctx context.Context, key, value string) error + type Postgres struct + func NewPostgres(url string) (*Postgres, error) + func (p *Postgres) Get(ctx context.Context, key string) (string, error) + func (p *Postgres) Scanner(ctx context.Context) (Scanner, error) + func (p *Postgres) Set(ctx context.Context, key, value string) error + type Scanner interface + Close func() error + Err func() error + Key func() string + Next func() bool + Value func() string + type Store interface + Get func(ctx context.Context, key string) (string, error) + Scanner func(ctx context.Context) (Scanner, error) + Set func(ctx context.Context, key, value string) error + type TXTFile struct + func NewTXTFile(path string) *TXTFile + func (t *TXTFile) Get(ctx context.Context, key string) (string, error) + func (t *TXTFile) Scanner(ctx context.Context) (Scanner, error) + func (t *TXTFile) Set(ctx context.Context, key, value string) error