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 ¶
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 ¶
func (me AnnounceEvent) LogValue() slog.Value
func (AnnounceEvent) MarshalJSON ¶
func (me AnnounceEvent) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler to ensure AnnounceEvent is serialized as a string in JSON
func (AnnounceEvent) MarshalText ¶
func (me AnnounceEvent) MarshalText() ([]byte, error)
func (AnnounceEvent) String ¶
func (e AnnounceEvent) String() string
func (*AnnounceEvent) UnmarshalJSON ¶
func (me *AnnounceEvent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler to deserialize AnnounceEvent from a string in JSON
func (*AnnounceEvent) UnmarshalText ¶
func (me *AnnounceEvent) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.