download

package
v1.69.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: BSD-3-Clause Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitProtocol added in v1.65.1

func InitProtocol(env *protocol.P2PEnv)

InitProtocol initials protocol

Types

type Counter added in v1.68.1

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

Counter ...

func NewCounter added in v1.68.1

func NewCounter() *Counter

NewCounter ...

func (*Counter) AddTaskInfo added in v1.68.1

func (c *Counter) AddTaskInfo(taskID, pid string, latency time.Duration)

AddTaskInfo ...

func (*Counter) Release added in v1.68.1

func (c *Counter) Release(tasksID string)

Release task by id

func (*Counter) UpdateTaskInfo added in v1.68.1

func (c *Counter) UpdateTaskInfo(taskID, pid string, height, costTime int64)

UpdateTaskInfo ...

type PeerTaskCounter added in v1.68.1

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

PeerTaskCounter ...

func NewPeerTaskCounter added in v1.68.1

func NewPeerTaskCounter(pid, taskID string) *PeerTaskCounter

NewPeerTaskCounter ...

func (*PeerTaskCounter) Append added in v1.68.1

func (p *PeerTaskCounter) Append(height, costTime int64)

Append add counter info

func (*PeerTaskCounter) AppendLatency added in v1.68.1

func (p *PeerTaskCounter) AppendLatency(latency time.Duration)

AppendLatency ...

func (*PeerTaskCounter) Counter added in v1.68.1

func (p *PeerTaskCounter) Counter() int64

Counter ..

func (*PeerTaskCounter) Pretty added in v1.68.1

func (p *PeerTaskCounter) Pretty() string

Pretty print information

type Protocol added in v1.65.1

type Protocol struct {
	*protocol.P2PEnv
	// contains filtered or unexported fields
}

Protocol ...

Jump to

Keyboard shortcuts

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