markets

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: GPL-3.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	DBName   = "dexy"
	FileName = "markets"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Markets

type Markets interface {
	InsertMarkets(markets []types.Market) error
	GetMarkets(tokens []types.Address) ([]types.Market, error)
}

type MongoMarkets

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

func NewMongoMarkets

func NewMongoMarkets(connection string) (*MongoMarkets, error)

func (*MongoMarkets) GetMarkets

func (m *MongoMarkets) GetMarkets(tokens []types.Address) ([]types.Market, error)

func (*MongoMarkets) InsertMarkets

func (m *MongoMarkets) InsertMarkets(markets []types.Market) error

Jump to

Keyboard shortcuts

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