types

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortProcessInfos

func SortProcessInfos(processes []ProcessInfo)

Types

type BooleanReply

type BooleanReply struct {
	Success bool
}

type ProcessInfo

type ProcessInfo struct {
	Name          string `xml:"name" json:"name"`
	Group         string `xml:"group" json:"group"`
	Description   string `xml:"description" json:"description"`
	Start         int    `xml:"start" json:"start"`
	Stop          int    `xml:"stop" json:"stop"`
	Now           int    `xml:"now" json:"now"`
	State         int    `xml:"state" json:"state"`
	Statename     string `xml:"statename" json:"statename"`
	Spawnerr      string `xml:"spawnerr" json:"spawnerr"`
	Exitstatus    int    `xml:"exitstatus" json:"exitstatus"`
	Logfile       string `xml:"logfile" json:"logfile"`
	StdoutLogfile string `xml:"stdout_logfile" json:"stdout_logfile"`
	StderrLogfile string `xml:"stderr_logfile" json:"stderr_logfile"`
	Pid           int    `xml:"pid" json:"pid"`
	Directory     string `xml:"directory" json:"directory"`
	Command       string `xml:"directory" json:"command"`
	IniPath       string `xml:"ini_path" json:"ini_path"`
}

func (ProcessInfo) GetFullName

func (pi ProcessInfo) GetFullName() string

type ProcessNameSorter

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

func NewwProcessNameSorter

func NewwProcessNameSorter(processes []ProcessInfo) *ProcessNameSorter

func (*ProcessNameSorter) Len

func (pns *ProcessNameSorter) Len() int

func (*ProcessNameSorter) Less

func (pns *ProcessNameSorter) Less(i, j int) bool

func (*ProcessNameSorter) Swap

func (pns *ProcessNameSorter) Swap(i, j int)

type ProcessSignal

type ProcessSignal struct {
	Name   string
	Signal string
}

type ReloadConfigResult

type ReloadConfigResult struct {
	AddedGroup   []string
	ChangedGroup []string
	RemovedGroup []string
}

Jump to

Keyboard shortcuts

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