storage

package
v0.0.0-...-748f5db Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 9 Imported by: 2

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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