process

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable bool `json:"enable"`
}

Config ...

func DefaultConfig

func DefaultConfig() Config

DefaultConfig return default config

func StdConfig

func StdConfig(key string) *Config

StdConfig returns standard configuration information

func (*Config) Build

func (s *Config) Build() *Scanner

Build new a instance

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

Scanner ...

func (*Scanner) C

func (ps *Scanner) C() <-chan []structs.ProcessStatus

C ...

func (*Scanner) Close

func (ps *Scanner) Close() error

Close ...

func (Scanner) GetProcessStatus

func (ps Scanner) GetProcessStatus() ([]structs.ProcessStatus, error)

GetProcessStatus ...

func (*Scanner) Scan

func (ps *Scanner) Scan() ([]structs.ProcessStatus, error)

Scan ...

func (*Scanner) Start

func (ps *Scanner) Start() error

Start after a delay of the specified time, the loop scan is started for status information and the data is written to the channel of the processScanner

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL