Documentation ¶
Index ¶
Constants ¶
View Source
const ( SRV_MODEL = 0 SRV_RECORD = 99 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor observes the data changes on the blockchain and synchronizes. cl for ipc/rpc communication, dl for download manager, and fs for data storage.
func New ¶
func New(flag *params.Config, cache, compress, listen bool, callback chan any) (m *Monitor, err error)
NewMonitor creates a new instance of monitor. Once Ipcpath is settle, this method prefers to build socket connection in order to get higher communicating performance. IpcPath is unavailable on windows. func New(flag *params.Config, cache, compress, listen bool, fs *backend.ChainDB, tMana *backend.TorrentManager, callback chan any) (*Monitor, error) {
func (*Monitor) CurrentNumber ¶
func (*Monitor) SwitchService ¶ added in v1.0.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.