Documentation
¶
Index ¶
- Variables
- func GetQuitChannel() chan os.Signal
- func OpenBufferedFileReader(p string, buffer int) (r io.ReadCloser, err error)
- func OpenFileReader(p string) (r io.ReadCloser, err error)
- func ParseInt(v string) (r uint64, err error)
- func ParseSource(v string) (ret net.IP, err error)
- func WaitForQuit() os.Signal
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidStatePath = errors.New("Invalid state file path") ErrNoState = errors.New("No state available") )
Functions ¶
func GetQuitChannel ¶ added in v3.3.3
GetQuitChannel registers and returns a channel that will be notified upon receipt of the following signals: SIGHUP, SIGINT, SIGQUIT, SIGTERM
func OpenBufferedFileReader ¶
func OpenBufferedFileReader(p string, buffer int) (r io.ReadCloser, err error)
func OpenFileReader ¶
func OpenFileReader(p string) (r io.ReadCloser, err error)
func ParseSource ¶
ParseSource attempts to parse a string as a source override The priority logic is:
- IP address
- Numeric ID
- hexadecimal hash
func WaitForQuit ¶ added in v3.3.3
WaitForQuit waits until it receives one of the following signals: SIGHUP, SIGINT, SIGQUIT, SIGTERM It returns the received signal.
Types ¶
Click to show internal directories.
Click to hide internal directories.