cli

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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.

func Start

func Start()

Types

type ByName

type ByName []net.Interface

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

type Config

type Config struct {
	Port             int
	NetworkInterface string
	Silent           bool
	WorkingDirectory string
	OpenBrowser      bool
}

func (*Config) ParseArgs

func (c *Config) ParseArgs()

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

type NetworkInterface

type NetworkInterface struct {
	Name, Network string
}

func (*NetworkInterface) Address

func (n *NetworkInterface) Address() (address string)

type Server

type Server struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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