Documentation ¶
Index ¶
- Constants
- func DeterminInterfaceToListenOn() string
- func LocalWebserverVersion() string
- func Start()
- type ByName
- type Config
- type InterfaceList
- func (l *InterfaceList) Count() int
- func (l *InterfaceList) Each(f fn)
- func (l *InterfaceList) Get(interfaceNumber int) (NetworkInterface, error)
- func (l *InterfaceList) GetInterfaces() []NetworkInterface
- func (l *InterfaceList) IndexOfElement(a string) (int, error)
- func (l *InterfaceList) Init()
- func (a *InterfaceList) Len() int
- func (a *InterfaceList) Less(i, j int) bool
- func (a *InterfaceList) Swap(i, j int)
- type InvalidNetworkInterfaceError
- type NetworkInterface
- type Server
Constants ¶
View Source
const BuildDate = ""
Date of build
View Source
const CommitHash = ""
SHA-value of git commit
View Source
const LocalWebserverVersionNumber = "0.1.0"
LocalWebserverVersionNumber represents the current build version. This should be the only one
View Source
const LocalWebserverVersionSuffix = "" // blank this when doing a release
VersionSuffix is the suffix used in the version string. It will be blank for release versions.
Variables ¶
This section is empty.
Functions ¶
func DeterminInterfaceToListenOn ¶
func DeterminInterfaceToListenOn() string
func LocalWebserverVersion ¶
func LocalWebserverVersion() string
LocalWebserverVersion returns the current version. It will include a suffix, typically '-DEV', if it's development version.
Types ¶
type Config ¶
type InterfaceList ¶
type InterfaceList struct {
Interfaces []NetworkInterface
}
func (*InterfaceList) Count ¶
func (l *InterfaceList) Count() int
func (*InterfaceList) Each ¶
func (l *InterfaceList) Each(f fn)
func (*InterfaceList) Get ¶
func (l *InterfaceList) Get(interfaceNumber int) (NetworkInterface, error)
func (*InterfaceList) GetInterfaces ¶
func (l *InterfaceList) GetInterfaces() []NetworkInterface
func (*InterfaceList) IndexOfElement ¶
func (l *InterfaceList) IndexOfElement(a string) (int, error)
func (*InterfaceList) Init ¶
func (l *InterfaceList) Init()
func (*InterfaceList) Len ¶
func (a *InterfaceList) Len() int
func (*InterfaceList) Less ¶
func (a *InterfaceList) Less(i, j int) bool
func (*InterfaceList) Swap ¶
func (a *InterfaceList) Swap(i, j int)
type InvalidNetworkInterfaceError ¶
type InvalidNetworkInterfaceError struct {
InterfaceNumber int
}
func (InvalidNetworkInterfaceError) Error ¶
func (e InvalidNetworkInterfaceError) Error() string
type NetworkInterface ¶
type NetworkInterface struct {
Name, Network string
}
func (*NetworkInterface) Address ¶
func (n *NetworkInterface) Address() (address string)
Click to show internal directories.
Click to hide internal directories.