getput

package
v2.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MPL-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Put

func Put(
	ctx context.Context, target krpc.ID, s *dht.Server, salt []byte, seqToPut seqToPut,
) (
	stats *traversal.Stats, err error,
)

Types

type GetResult added in v2.11.0

type GetResult struct {
	Seq     int64
	V       bencode.Bytes
	Mutable bool
}

func Get

func Get(
	ctx context.Context, target bep44.Target, s *dht.Server, seq *int64, salt []byte,
) (
	ret GetResult, stats *traversal.Stats, err error,
)

Jump to

Keyboard shortcuts

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