hlf

package
v0.0.0-...-0e5ff0a Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockCacheEvent

type BlockCacheEvent struct {
	Interval uint64

	Transactions []*TxEvent
	poller.BlockEvent
	// contains filtered or unexported fields
}

func (*BlockCacheEvent) Hash

func (blockEvent *BlockCacheEvent) Hash() string

func (*BlockCacheEvent) Number

func (blockEvent *BlockCacheEvent) Number() *big.Int

func (*BlockCacheEvent) ParentHash

func (blockEvent *BlockCacheEvent) ParentHash() string

func (*BlockCacheEvent) Timestamp

func (blockEvent *BlockCacheEvent) Timestamp() uint64

type Cache

type Cache struct {
	*metrics.RawCache
	Tracking *Tracking
	poller.Connector
}

func NewCache

func NewCache(configFile string, backupFile string, restore bool, backupFrequency int64) *Cache

func (*Cache) Apply

func (cache *Cache) Apply(event interface{})

func (*Cache) Revert

func (cache *Cache) Revert(event interface{})

func (*Cache) SetReady

func (cache *Cache) SetReady()

type Processor

type Processor struct {
}

func NewProcessor

func NewProcessor() *Processor

func (*Processor) NewBlockEvent

func (processor *Processor) NewBlockEvent(number *big.Int, parentHash string, hash string) poller.BlockEvent

func (*Processor) Process

func (processor *Processor) Process(obj interface{}, event poller.BlockEvent, listening bool)

type Tracking

type Tracking struct {
	Events []*metrics.Event `json:"events"`
}

type TxEvent

type TxEvent struct {
	Timestamp uint64
	Chaincode string
	Method    string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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