Documentation ¶
Index ¶
- type Data
- func (d *Data) GetAverageBlockProcessingTime() int64
- func (d *Data) GetLastBlockInfo() LastBlockInfo
- func (d *Data) GetTimePerBlock() int64
- func (d *Data) PushEndBlock(req *EndRequest)
- func (d *Data) PushStartBlock(req *StartRequest)
- func (d *Data) ResetPeersPing()
- func (d *Data) SetApiTime(duration time.Duration, path string)
- func (d *Data) SetPeerTime(duration time.Duration, network string)
- func (d *Data) Statistic(ctx context.Context)
- type EndRequest
- type LastBlockInfo
- type StartRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { BlockStart struct { sync.RWMutex // contains filtered or unexported fields } BlockEnd blockEnd Speed struct { sync.RWMutex // contains filtered or unexported fields } Api apiResponseTime Peer peerPing // contains filtered or unexported fields }
func (*Data) GetAverageBlockProcessingTime ¶ added in v1.1.6
func (*Data) GetLastBlockInfo ¶ added in v1.1.6
func (d *Data) GetLastBlockInfo() LastBlockInfo
func (*Data) GetTimePerBlock ¶ added in v1.1.6
func (*Data) PushEndBlock ¶ added in v1.1.6
func (d *Data) PushEndBlock(req *EndRequest)
func (*Data) PushStartBlock ¶ added in v1.1.6
func (d *Data) PushStartBlock(req *StartRequest)
func (*Data) ResetPeersPing ¶ added in v1.1.6
func (d *Data) ResetPeersPing()
type EndRequest ¶ added in v1.1.6
type LastBlockInfo ¶ added in v1.1.6
Click to show internal directories.
Click to hide internal directories.