peer

package
v1.68.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: BSD-3-Clause Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnitTime = map[string]int64{
	"hour":   3600,
	"min":    60,
	"second": 1,
}

UnitTime key time value:time.Second

Functions

func CaculateLifeTime added in v1.65.3

func CaculateLifeTime(timestr string) (time.Duration, error)

CaculateLifeTime parase time string to time.Duration

func InitProtocol added in v1.65.1

func InitProtocol(env *protocol.P2PEnv)

InitProtocol init protocol

Types

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