store

package
v0.0.0-...-cf0705c Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessLogs

func ProcessLogs(logs string) (types.Track, int)

func TrackToSetDown

func TrackToSetDown(track types.Track, num int) types.Track

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func (File) Load

func (f File) Load(FS afero.Fs) (types.Track, error)

func (File) Set

func (f File) Set(track types.Track, FS afero.Fs) error

func (File) Wipe

func (f File) Wipe(FS afero.Fs) error

type MongoDb

type MongoDb struct {
	// contains filtered or unexported fields
}

func (MongoDb) Load

func (m MongoDb) Load(FS afero.Fs) (types.Track, error)

func (MongoDb) Set

func (m MongoDb) Set(track types.Track, FS afero.Fs) error

func (MongoDb) Wipe

func (m MongoDb) Wipe(FS afero.Fs) error

type PGDB

type PGDB struct {
	// contains filtered or unexported fields
}

func (PGDB) CreateTable

func (p PGDB) CreateTable() error

func (PGDB) Load

func (p PGDB) Load(FS afero.Fs) (types.Track, error)

func (PGDB) Set

func (p PGDB) Set(track types.Track, FS afero.Fs) error

func (PGDB) Wipe

func (p PGDB) Wipe(FS afero.Fs) error

type Store

type Store interface {
	Set(track types.Track, FS afero.Fs) error
	Load(FS afero.Fs) (types.Track, error)
	Wipe(FS afero.Fs) error
}

func GetStoreViaConn

func GetStoreViaConn(connString string, dir string, FS afero.Fs, wd string, environment string) (Store, error)

Jump to

Keyboard shortcuts

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