Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor interface {
// contains filtered or unexported methods
}
Accessor is interface which defines all functions used on database/cache/fts in the system. Any other packages should use this Accessor instead of using eg. database directly.
func New ¶
func New(postgresConfig config.PostgresConfigProvider, redisConfig config.RedisConfigProvider, elasticsearchConfig config.ElasticsearchConfigProvider) Accessor
New constructs Accessor that TODO
type FakeStorage ¶
type FakeStorage struct { Database *database.Connection Cache cache.Accessor Storage Accessor }
FakeStorage exports all fields which can be necessary for tests.
func NewFakeStorage ¶
func NewFakeStorage(postgresConfig config.PostgresConfigProvider) *FakeStorage
NewFakeStorage creates new fake storage necessary for tests.
Click to show internal directories.
Click to hide internal directories.