Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config, logger kitlog.Logger) (repository.Repository, error)
New returns an initialized repository.Repository derived from cfg configuration.
Types ¶
type Config ¶
type Config struct { Type string `fig:"type" default:"boltdb"` PgSQL pgsqlrepository.Config `fig:"pgsql"` BoltDB boltdb.Config `fig:"boltdb"` Cache cachedrepository.Config `fig:"cache"` }
Config contains generic storage configuration.
Click to show internal directories.
Click to hide internal directories.