p2pstore

package
v1.65.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: BSD-3-Clause Imports: 22 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 //协议共享接口变量

	//a child table of healthy routing table without full nodes
	ShardHealthyRoutingTable *kb.RoutingTable
	// contains filtered or unexported fields
}

Protocol ...

Jump to

Keyboard shortcuts

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