agent

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type History added in v0.1.0

type History struct {
	Tx          string  `json:"txHash" bson:"tx"`
	BlockNumber uint64  `bson:"blockNumer"`
	From        string  `bson:"from"`
	To          string  `bson:"to"`
	Amount      float64 `bson:"amount"`
	Timestamp   string  `bson:"timestamp"`
}

type MongoAgent

type MongoAgent struct {
	Db *mongo.Database
}

func (*MongoAgent) GetHistory added in v0.1.0

func (ma *MongoAgent) GetHistory(ctx context.Context, memo, start, end string) (records []History, err error)

func (*MongoAgent) InsertTransferRecord

func (ma *MongoAgent) InsertTransferRecord(ctx context.Context, record interface{}) error

func (*MongoAgent) NotNotified added in v0.1.0

func (ma *MongoAgent) NotNotified(ctx context.Context) (records []types.TransferRecord, err error)

func (*MongoAgent) UpdateNotifyTime added in v0.1.0

func (ma *MongoAgent) UpdateNotifyTime(ctx context.Context, record types.TransferRecord) error

Jump to

Keyboard shortcuts

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