utils

package
v0.0.0-...-e47bb02 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToByte

func BoolToByte(value bool) byte

Types

type Config

type Config struct {
	UDP_ENABLED bool   `default:"true"`
	UDP_IP      string `default:"0.0.0.0"`
	UDP_PORT    int    `default:"8053"`

	INTERNET_ROOT_SERVER string
}

func LoadConfig

func LoadConfig() (*Config, error)

type IPv4

type IPv4 struct {
	Octets []byte
}

func NewIPv4

func NewIPv4(data []byte) (*IPv4, error)

func (*IPv4) String

func (v *IPv4) String() string

type IPv6

type IPv6 struct {
	Data []byte
}

func NewIPv6

func NewIPv6(data []byte) (*IPv6, error)

func (*IPv6) String

func (v *IPv6) String() string

Jump to

Keyboard shortcuts

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