peer

package
v0.0.0-...-3c905e5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: BSD-3-Clause Imports: 20 Imported by: 1

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

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

CaculateLifeTime parase time string to time.Duration

func InitProtocol

func InitProtocol(env *protocol.P2PEnv)

InitProtocol init protocol

Types

type Protocol

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