history

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: 7 Imported by: 5

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type History

type History interface {
	GetHistory(token types.Address, user *types.Address, limit int) []types.Transaction
	InsertTransaction(transaction types.Transaction) error
}

type HistoryAggregation

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

func NewHistoryAggregation

func NewHistoryAggregation(connection string, repository repositories.TokenRepository) (*HistoryAggregation, error)

func (*HistoryAggregation) AggregateTransactions

func (history *HistoryAggregation) AggregateTransactions(block int64) ([]types.Tick, error)

type MongoHistory

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

func NewMongoHistory

func NewMongoHistory(connection string) (*MongoHistory, error)

func (*MongoHistory) GetHistory

func (history *MongoHistory) GetHistory(token types.Address, user *types.Address, limit int) []types.Transaction

func (*MongoHistory) InsertTransaction

func (history *MongoHistory) InsertTransaction(transaction types.Transaction) error

Jump to

Keyboard shortcuts

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