getput

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(
	ctx context.Context, target krpc.ID, s *dht.Server,
) (
	v interface{}, stats *traversal.Stats, err error,
)

func Put

func Put(
	ctx context.Context, target krpc.ID, s *dht.Server, put interface{},
) (
	stats *traversal.Stats, err error,
)

Types

type PutGetResult

type PutGetResult struct {
	GetV           interface{}
	GetBytes       []byte
	TraversalStats *traversal.Stats
	SuccessfulPuts []krpc.NodeAddr
}

Jump to

Keyboard shortcuts

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