Documentation
¶
Index ¶
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 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 ¶
type ReadResetCloser ¶ added in v3.3.6
func NewFileReadResetCloser ¶ added in v3.3.6
func NewFileReadResetCloser(fin *os.File) ReadResetCloser
func OpenBufferedFileReader ¶
func OpenBufferedFileReader(p string, buffer int) (r ReadResetCloser, err error)
func OpenFileReader ¶
func OpenFileReader(p string) (r ReadResetCloser, err error)
Click to show internal directories.
Click to hide internal directories.