Documentation ¶
Index ¶
- func Expand(input string) string
- func FindIP(iface net.Interface) (string, error)
- func GetExternalIP() (net.IP, error)
- func GetInterfaceAddress(ifaceString string) (string, error)
- func GetRandomURLPath() string
- func GetSessionID() (string, error)
- func Interfaces(listAll bool) (map[string]string, error)
- func ReadFilenames(dir string) []string
- func ZipFiles(files []string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInterfaceAddress ¶
GetInterfaceAddress returns the address of the network interface to bind the server to. If the interface is "any", it will return 0.0.0.0. If no interface is found with that name, an error is returned
func GetRandomURLPath ¶
func GetRandomURLPath() string
GetRandomURLPath returns a random string of 4 alphanumeric characters
func GetSessionID ¶
GetSessionID returns a base64 encoded string of 40 random characters
func Interfaces ¶
Interfaces returns a `name:ip` map of the suitable interfaces found
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.