Documentation ¶
Index ¶
- func Serve(cmd *cobra.Command, args []string)
- type EthNetwork
- func (s *EthNetwork) Load() (lastBlock uint64, lastTxIndex uint, err error)
- func (s *EthNetwork) Process(tx *types.Transaction, r *types.Receipt) error
- func (s *EthNetwork) Save(lastBlock uint64, lastTxIndex uint) error
- func (s *EthNetwork) Start() error
- func (s *EthNetwork) Stop()
- func (s *EthNetwork) TxInfo(txid string) string
- type EventLogFunc
- type KVStorage
- type Network
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EthNetwork ¶
type EthNetwork struct {
// contains filtered or unexported fields
}
func NewEthNetwork ¶
func NewEthNetwork(netid, url string, storage *KVStorage, logfunc EventLogFunc) *EthNetwork
func (*EthNetwork) Load ¶
func (s *EthNetwork) Load() (lastBlock uint64, lastTxIndex uint, err error)
func (*EthNetwork) Process ¶
func (s *EthNetwork) Process(tx *types.Transaction, r *types.Receipt) error
func (*EthNetwork) Start ¶
func (s *EthNetwork) Start() error
func (*EthNetwork) Stop ¶
func (s *EthNetwork) Stop()
func (*EthNetwork) TxInfo ¶
func (s *EthNetwork) TxInfo(txid string) string
type EventLogFunc ¶
type EventLogFunc func(netid, alert, message string, tx *types.Transaction, r *types.Receipt)
type KVStorage ¶
func NewKVStorage ¶
Click to show internal directories.
Click to hide internal directories.