Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppchainMonitor ¶
type AppchainMonitor struct {
// contains filtered or unexported fields
}
Monitor receives event from blockchain and sends it to network
func New ¶
New creates monitor instance given client interacting with appchain and interchainCounter about appchain.
func (*AppchainMonitor) ListenOnIBTP ¶
func (m *AppchainMonitor) ListenOnIBTP() chan *pb.IBTP
func (*AppchainMonitor) QueryIBTP ¶
func (m *AppchainMonitor) QueryIBTP(id string) (*pb.IBTP, error)
func (*AppchainMonitor) QueryLatestMeta ¶
func (m *AppchainMonitor) QueryLatestMeta() map[string]uint64
type Monitor ¶
type Monitor interface {
// Start starts the service of monitor
Start() error
// Stop stops the service of monitor
Stop() error
// listen on interchain ibtp from now on
ListenOnIBTP() chan *pb.IBTP
// query historical ibtp by its id
QueryIBTP(id string) (*pb.IBTP, error)
// QueryLatestMeta queries latest index map of ibtps executed on appchain
QueryLatestMeta() map[string]uint64
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_monitor is a generated GoMock package.
|
Package mock_monitor is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.