getput

package
v2.0.0-...-9844042 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

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

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,
)

type SeqToPut

type SeqToPut func(seq int64) bep44.Put

Jump to

Keyboard shortcuts

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