p2pstore

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: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalChunkInfoKey = "local-chunk-info"
	ChunkNameSpace    = "chunk"
	ChunkPrefix       = "chunk-"
	AlphaValue        = 3
)

prefix key and const parameters

Variables

This section is empty.

Functions

func InitProtocol

func InitProtocol(env *protocol.P2PEnv)

InitProtocol initials the protocol.

Types

type LocalChunkInfo

type LocalChunkInfo struct {
	*types.ChunkInfoMsg
	Time time.Time
}

LocalChunkInfo wraps local chunk key with time.

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