types

package
v0.0.0-...-e2f0dde Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 5 Imported by: 2

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
}

Jump to

Keyboard shortcuts

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