コード例 #1
0
ファイル: process.go プロジェクト: ryancox/goss
func NewProcess(sysProcess system.Process, config util.Config) (*Process, error) {
	executable := sysProcess.Executable()
	running, _ := sysProcess.Running()
	return &Process{
		Executable: executable,
		Running:    running.(bool),
	}, nil
}
コード例 #2
0
ファイル: process.go プロジェクト: netluxe/goss
func NewProcess(sysProcess system.Process, ignoreList []string) *Process {
	executable := sysProcess.Executable()
	running, _ := sysProcess.Running()
	return &Process{
		Executable: executable,
		Running:    running.(bool),
	}
}