Documentation
¶
Overview ¶
Package storetesting contains support code for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Logger = log.New(os.Stdout).WithDebug().WithoutColor() Set = wire.NewSet( cache.Set, metrics.Set, ProvideCacheConfig, ProvideStoreConfig, ProvideDB, wire.Value(Logger), ) )
Set is used by wire.
Functions ¶
func ProvideCacheConfig ¶
ProvideCacheConfig returns a configuration with sane defaults.
func ProvideDB ¶
func ProvideDB( ctx context.Context, config *config.Config, logger *log.Logger, ) (*pgxpool.Pool, func(), error)
ProvideDB provides a database connection. It will automatically create and tear down a temporary database. This connection also disallows full-table scans.
func ProvideStoreConfig ¶
ProvideStoreConfig returns a configuration with sane defaults.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.