shared

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MPL-2.0 Imports: 5 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnounceEvent added in v1.61.0

type AnnounceEvent int32
const (
	None      AnnounceEvent = iota
	Completed               // The local peer just completed the torrent.
	Started                 // The local peer has just resumed this torrent.
	Stopped                 // The local peer is leaving the swarm.
)

func (AnnounceEvent) LogValue added in v1.61.0

func (me AnnounceEvent) LogValue() slog.Value

func (AnnounceEvent) MarshalJSON added in v1.61.0

func (me AnnounceEvent) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler to ensure AnnounceEvent is serialized as a string in JSON

func (AnnounceEvent) MarshalText added in v1.61.0

func (me AnnounceEvent) MarshalText() ([]byte, error)

func (AnnounceEvent) String added in v1.61.0

func (e AnnounceEvent) String() string

func (*AnnounceEvent) UnmarshalJSON added in v1.61.0

func (me *AnnounceEvent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler to deserialize AnnounceEvent from a string in JSON

func (*AnnounceEvent) UnmarshalText added in v1.61.0

func (me *AnnounceEvent) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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