puller

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionTrace added in v0.3.3

type ActionTrace struct {
	Seq  string
	JSON map[string]interface{}
}

type BlockHeader added in v0.3.3

type BlockHeader struct {
	Id        string
	Num       uint32
	Timestamp time.Time
	Producer  string
	Confirmed uint32
	Previous  string

	TransactionMRoot string
	ActionMRoot      string
	ScheduleVersion  uint32
	NewProducers     ProducerSchedule
}

type EosioDocument added in v0.3.3

type EosioDocument struct {
	SearchTransactionsForward struct {
		Cursor               string
		Undo                 bool
		IsIrreversible       bool
		IrreversibleBlockNum uint32
		Block                BlockHeader
		Trace                TransactionTrace
	}
}

type ProducerKey added in v0.3.3

type ProducerKey struct {
	ProducerName    string
	BlockSigningKey string
}

type ProducerSchedule added in v0.3.3

type ProducerSchedule struct {
	Version   uint32
	Producers ProducerKey
}

type Puller

type Puller struct {
	Network string
	Key     string
	Address string
	// contains filtered or unexported fields
}

func (*Puller) Init

func (p *Puller) Init(network, apiKey, address string, db *mongo.Database) error

func (*Puller) Pull

func (p *Puller) Pull(ctx context.Context) error

type TransactionReceiptHeader added in v0.3.3

type TransactionReceiptHeader struct {
}

type TransactionStatus added in v0.3.3

type TransactionStatus string
const StatusExecuted TransactionStatus = "EXECUTED"

type TransactionTrace added in v0.3.3

type TransactionTrace struct {
	Id              string
	Block           BlockHeader
	Status          TransactionStatus
	Receipt         TransactionReceiptHeader
	Elapsed         int64
	NetUsage        uint64
	Scheduled       bool
	ExecutedActions []ActionTrace
	MatchingActions []ActionTrace
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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