Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Proxyname is the name of the RE proxy process.
Proxyname = "reproxy"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct { Pid int // contains filtered or unexported fields }
File represents a file that stores the pid of a running reproxy process.
func (*File) Delete ¶
func (f *File) Delete()
Delete this pid file. Supresses and logs errors as it is ok if the file as already been cleaned up.
func (*File) PollForDeath ¶
PollForDeath will poll pid from f every pollDelay and send nil to deadCh when that pid is no longer alive, the pid file will then be deleted. If an error is encountered in checking the process then it will be send to deadCh and this function will end and the pid file will not be deleted. Meant to be called in a go routine.
Click to show internal directories.
Click to hide internal directories.