storage

package
v0.0.0-...-a6bc667 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDb

func NewDb(db *sqlx.DB) *dbStorage

func NewMem

func NewMem(cfg *config.MemStorageConfig) *memStorage

Types

type DummyStorage

type DummyStorage struct{}

func NewDummy

func NewDummy() DummyStorage

func (DummyStorage) Get

func (s DummyStorage) Get() ([]request.CaughtRequest, error)

func (DummyStorage) Save

type Storage

type Storage interface {
	Save(request.CaughtRequest) (request.CaughtRequest, error)
	Get() ([]request.CaughtRequest, error)
}

Jump to

Keyboard shortcuts

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