Documentation
¶
Index ¶
- Constants
- func CheckObproxyProcess() (bool, error)
- func CheckObproxydProcess() (bool, error)
- func CheckObserverProcess() (bool, error)
- func CheckPortSocketInode(port string) (bool, error)
- func CheckProcessExist(pid int32) (bool, error)
- func ExecuteBinary(binaryPath string, inputs []string) (err error)
- func Exit(code int)
- func ExitWithError(code int, err error)
- func ExitWithFailure(code int, msg string)
- func ExitWithMsg(code int, msg string)
- func FindPIDByPort(port uint32) (int32, error)
- func GetDaemonPid() (int32, error)
- func GetObproxyPid() (string, error)
- func GetObproxydPid() (string, error)
- func GetObserverPid() (string, error)
- func GetObserverUid() (uint32, error)
- func GetObshellPid() (int32, error)
- func GetObshellPidStr() (string, error)
- func GetPid(path string) (int32, error)
- func GetUidFromPid(pid int) (uint32, error)
- func Gid() uint32
- func Uid() uint32
- func WritePid(path string, pid int) (err error)
- func WritePidForce(path string, pid int) (err error)
- type ProcState
- type Process
- type ProcessConfig
- type ProcessInfo
Constants ¶
View Source
const ( Red = "\033[31m" Reset = "\033[0m" Yellow = "\033[33m" )
Variables ¶
This section is empty.
Functions ¶
func CheckObproxyProcess ¶
func CheckObproxydProcess ¶
func CheckObserverProcess ¶
func CheckPortSocketInode ¶
func CheckProcessExist ¶
func ExecuteBinary ¶
func ExitWithError ¶
func ExitWithFailure ¶
func ExitWithMsg ¶
func FindPIDByPort ¶
func GetDaemonPid ¶
func GetObserverPid ¶
func GetObserverUid ¶
func GetObshellPid ¶
func GetObshellPidStr ¶
func GetUidFromPid ¶
func WritePid ¶
writePid writes the pid to the specified path atomically. If the file already exists, an error is returned.
func WritePidForce ¶
writePid writes the pid to the specified path atomically.
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func NewProcess(conf ProcessConfig) *Process
func (*Process) SwitchToLogMode ¶
func (p *Process) SwitchToLogMode()
type ProcessConfig ¶
type ProcessInfo ¶
type ProcessInfo struct {
// contains filtered or unexported fields
}
func (*ProcessInfo) Exist ¶
func (p *ProcessInfo) Exist() (bool, error)
func (*ProcessInfo) Pid ¶
func (p *ProcessInfo) Pid() (string, error)
Click to show internal directories.
Click to hide internal directories.