Documentation ¶
Index ¶
- func GetCommand(pid PID) string
- func GetEnv(pid PID) ([]string, error)
- func Info(pid PID) (string, error)
- func Kill(pid PID) error
- func NewProcDataSource() (*procDataSource, error)
- func OpenFiles(pid PID) (string, error)
- type ChdirData
- type Datasource
- type ExecData
- type OpenData
- type PID
- type ProcDataSource
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommand ¶
func NewProcDataSource ¶
func NewProcDataSource() (*procDataSource, error)
Types ¶
type Datasource ¶
type Datasource[T any] struct { Get func(pid PID) (T, error) GetStream func() (chan PID, chan T, error) }
func NewChdirDataSource ¶
func NewChdirDataSource() (Datasource[ChdirData], error)
func NewExecDataSource ¶
func NewExecDataSource() (Datasource[ExecData], error)
func NewOpenDataSource ¶
func NewOpenDataSource() (Datasource[OpenData], error)
type ProcDataSource ¶
Click to show internal directories.
Click to hide internal directories.