Documentation ¶
Index ¶
- func GetAvailablePort() (int, error)
- func GetInterfaceFirst() (string, error)
- func GetInterfaceIPList(filters ...func(string) bool) ([]string, error)
- func GetInterfaceIPv4First() (string, error)
- func GetInterfaceIPv6First() (string, error)
- func GetLocalareaIP(network, address string) (string, error)
- func IsPortAvailable(port int) bool
- type Config
- type IPType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailablePort ¶
func GetInterfaceFirst ¶
func GetInterfaceIPv4First ¶
func GetInterfaceIPv6First ¶
func GetLocalareaIP ¶
func IsPortAvailable ¶
Types ¶
type Config ¶
type Config struct { AccessIP string `json:"access_ip" toml:"access_ip" mapstructure:"access_ip"` BindIP string `json:"bind_ip" toml:"bind_ip" mapstructure:"bind_ip"` BindPort int `json:"bind_port" toml:"bind_port" mapstructure:"bind_port"` DisableTLS bool `json:"disable_tls" toml:"-" mapstructure:"-"` }
func (*Config) VerifyConfig ¶
Click to show internal directories.
Click to hide internal directories.