mapping

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operator

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

Operator 独立的映射处理器

func NewOperator

func NewOperator() *Operator

NewOperator :

func (*Operator) GenerateReportList

func (m *Operator) GenerateReportList() map[string]map[int]int

GenerateReportList 用全局map生成没有分组的pid清单

func (*Operator) GetMappingPID

func (m *Operator) GetMappingPID(proc Process) int

GetMappingPID 根据传入的进程信息,获取一个映射pid

func (*Operator) RefreshGlobalMap

func (m *Operator) RefreshGlobalMap(currList []Process)

RefreshGlobalMap 根据进程对比,刷新全局map,并返回对应的pid映射关系

type Process

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

Process :

func NewProcess

func NewProcess(pid int, name string, params string) Process

NewProcess :

Jump to

Keyboard shortcuts

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