Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LegionAddress ¶
LegionAddress is a comparable type with a few convinience methods
func LegionAddressFromString ¶
func LegionAddressFromString(addrString string) LegionAddress
LegionAddressFromString returns a LegionAddress from a string
func NewLegionAddress ¶
func NewLegionAddress(host string, port uint16) LegionAddress
NewLegionAddress returns a LegionAddress object
func (LegionAddress) IsValid ¶
func (k LegionAddress) IsValid() bool
IsValid returns true if the address is valid, false if not
func (LegionAddress) String ¶
func (k LegionAddress) String() string
String returns a formatted KCP address like "host:port"
Click to show internal directories.
Click to hide internal directories.