storage

package
v0.0.0-...-20dc6fc Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// SaveTokenPrice ...
	SaveTokenPrice(token, currency, provider string, timestamp time.Time, price float64) error
	// GetTokenPrice ...
	GetTokenPrice(token, currency, provider string, timestamp time.Time) (float64, error)
}

Storage storage interface

func NewStorageFromContext

func NewStorageFromContext(sugar *zap.SugaredLogger, c *cli.Context) (Storage, error)

NewStorageFromContext return storage interface from context

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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