notify

package
v0.0.0-...-bdc4504 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const NewChainNotifyMonitorLatestHeight = ".BlockHeight"

LatestHeight config file

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitorNotify

type MonitorNotify struct {
	Notify
	// contains filtered or unexported fields
}

func NewMonitorNotify

func NewMonitorNotify(p *NotifyConfig, rpcURL string, blockDelay int64, enableTracer bool, traceConfig *tracer.TraceConfig, logger *log.Logger) (*MonitorNotify, error)

func (*MonitorNotify) MarshalJSON

func (n *MonitorNotify) MarshalJSON() ([]byte, error)

MarshalJSON encodes to json format.

func (*MonitorNotify) Run

func (n *MonitorNotify) Run() error

type Notify

type Notify struct {
	Logger *log.Logger
	// contains filtered or unexported fields
}

type NotifyConfig

type NotifyConfig struct {
	Server      string
	Username    string
	Password    string
	ClientID    string
	QoS         byte
	Topic       string
	PrefixTopic string // for publish and only for n_address
}

type PendingNotify

type PendingNotify struct {
	Notify
}

func NewPendingNotify

func NewPendingNotify(s, p *NotifyConfig, logger *log.Logger) (*PendingNotify, error)

func (*PendingNotify) MarshalJSON

func (n *PendingNotify) MarshalJSON() ([]byte, error)

MarshalJSON encodes to json format.

func (*PendingNotify) Run

func (n *PendingNotify) Run() error

type TransaferNotify

type TransaferNotify struct {
	Notify
	// contains filtered or unexported fields
}

func NewTransferNotify

func NewTransferNotify(s, p *NotifyConfig, rpcURL string, block int64, logger *log.Logger) (*TransaferNotify, error)

func (*TransaferNotify) MarshalJSON

func (n *TransaferNotify) MarshalJSON() ([]byte, error)

MarshalJSON encodes to json format.

func (*TransaferNotify) Run

func (n *TransaferNotify) Run() error

type TransferTx

type TransferTx struct {
	From        common.Address  `json:"from"`
	To          *common.Address `json:"to"`
	Value       *big.Int        `json:"value"`
	Hash        common.Hash     `json:"hash"`
	Data        []byte          `json:"data"`
	BlockNumber *big.Int        `json:"blockNumber"`
}

func (*TransferTx) MarshalJSON

func (c *TransferTx) MarshalJSON() ([]byte, error)

MarshalJSON encodes to json format.

func (*TransferTx) UnmarshalJSON

func (c *TransferTx) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes from json format to a TransferTx.

type Tx

type Tx struct {
	// contains filtered or unexported fields
}

type TxAge

type TxAge struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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