status

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The Status here, tells us the status os the connection.
	StatusBanned       = Status(-1)
	StatusUnknown      = Status(0)
	StatusDisconnected = Status(1)
	StatusConnected    = Status(2)
	StatusKnown        = Status(3)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status int

func (Status) IsBanned

func (s Status) IsBanned() bool

func (Status) IsConnected

func (s Status) IsConnected() bool

func (Status) IsConnectedOrKnown

func (s Status) IsConnectedOrKnown() bool

func (Status) IsDisconnected

func (s Status) IsDisconnected() bool

func (Status) IsKnown

func (s Status) IsKnown() bool

func (Status) IsUnknown

func (s Status) IsUnknown() bool

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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