monitor

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

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 bitxhub

func New

func New(agent agent.Agent, client client.Client, meta *rpcx.Appchain) (*AppchainMonitor, error)

New creates monitor instance given agent of bitxhub, client interacting with appchain and meta about appchain.

func (*AppchainMonitor) Start

func (m *AppchainMonitor) Start() error

Start implements Monitor

func (*AppchainMonitor) Stop

func (m *AppchainMonitor) Stop() error

Stop implements Monitor

type Monitor

type Monitor interface {
	// Start starts the service of monitor
	Start() error

	// Stop stops the service of monitor
	Stop() error
}

Directories

Path Synopsis
Package mock_monitor is a generated GoMock package.
Package mock_monitor is a generated GoMock package.

Jump to

Keyboard shortcuts

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