Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortProcessInfos

func SortProcessInfos(processes []ProcessInfo)

Types

type ApiMethod

type ApiMethod struct {
	MethodName string   `xml:"methodName" json:"methodName"`
	Params     []string `xml:"params" json:"params"`
}

type BooleanReply

type BooleanReply struct {
	Success bool
}

type MulticallArgs

type MulticallArgs struct {
	Methods []ApiMethod
}

type MulticallResults

type MulticallResults struct {
	Results []interface{}
}

func (MulticallResults) MarshalXML

func (r MulticallResults) MarshalXML() string

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"`
	State          int    `xml:"status" 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"`
	Stdout_logfile string `xml:"stdout_logfile" json:"stdout_logfile"`
	Stderr_logfile string `xml:"stderr_logfile" json:"stderr_logfile"`
	Pid            int    `xml:"pid" json:"pid"`
}

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
}

func (ReloadConfigResult) MarshalXML

func (r ReloadConfigResult) MarshalXML() string

MarshalXML generate XML output for PrecsontructedInfo

type ReloadConfigResults

type ReloadConfigResults struct {
	Results [][]ReloadConfigResult
}

type UpdateResult

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