Documentation
¶
Index ¶
- type AnnounceEvent
- func (me AnnounceEvent) LogValue() slog.Value
- func (me AnnounceEvent) MarshalJSON() ([]byte, error)
- func (me AnnounceEvent) MarshalText() ([]byte, error)
- func (e AnnounceEvent) String() string
- func (me *AnnounceEvent) UnmarshalJSON(data []byte) error
- func (me *AnnounceEvent) UnmarshalText(text []byte) error
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
Click to show internal directories.
Click to hide internal directories.