storage

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoFlips = errors.New("no flips exist in db")

Functions

This section is empty.

Types

type IMakerStorageRepository

type IMakerStorageRepository interface {
	GetDaiKeys() ([]string, error)
	GetMaxFlip() (int64, error)
	GetGemKeys() ([]Urn, error)
	GetIlks() ([]string, error)
	GetVatSinKeys() ([]string, error)
	GetVowSinKeys() ([]string, error)
	GetUrns() ([]Urn, error)
	SetDB(db *postgres.DB)
}

type MakerStorageRepository

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

func (*MakerStorageRepository) GetDaiKeys

func (repository *MakerStorageRepository) GetDaiKeys() ([]string, error)

func (*MakerStorageRepository) GetGemKeys

func (repository *MakerStorageRepository) GetGemKeys() ([]Urn, error)

func (MakerStorageRepository) GetIlks

func (repository MakerStorageRepository) GetIlks() ([]string, error)

func (*MakerStorageRepository) GetMaxFlip

func (repository *MakerStorageRepository) GetMaxFlip() (int64, error)

func (*MakerStorageRepository) GetUrns

func (repository *MakerStorageRepository) GetUrns() ([]Urn, error)

func (*MakerStorageRepository) GetVatSinKeys added in v0.2.2

func (repository *MakerStorageRepository) GetVatSinKeys() ([]string, error)

func (*MakerStorageRepository) GetVowSinKeys added in v0.2.2

func (repository *MakerStorageRepository) GetVowSinKeys() ([]string, error)

func (*MakerStorageRepository) SetDB

func (repository *MakerStorageRepository) SetDB(db *postgres.DB)

type Urn

type Urn struct {
	Ilk string
	Guy string
}

Directories

Path Synopsis
cat
jug
vat
vow

Jump to

Keyboard shortcuts

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