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
Click to show internal directories.
Click to hide internal directories.