Versions in this module Expand all Collapse all v1 v1.1.8 Nov 27, 2020 v1.1.7 Nov 26, 2020 Changes in this version + var DisabledState = State + var SIGTERM = os.Kill — js/wasm + var SIGTERM = syscall.SIGTERM — darwin/amd64, linux/amd64, windows/amd64 + var SIGUSR1 = os.Interrupt — js/wasm + var SIGUSR1 = syscall.SIGTERM — windows/amd64 + var SIGUSR1 = syscall.SIGUSR1 — darwin/amd64, linux/amd64 + var SIGUSR2 = os.Interrupt — js/wasm + var SIGUSR2 = syscall.SIGTERM — windows/amd64 + var SIGUSR2 = syscall.SIGUSR2 — darwin/amd64, linux/amd64 + var Timeout = 3 * time.Second — windows/amd64 + func IsSupported() bool + func Restart() + func Run(c Config) + func RunErr(c Config) error + func SanityCheck() + func WMIQueryWithContext(ctx context.Context, query string, dst interface{}, ...) error — windows/amd64 + type Config struct + Address string + Addresses []string + Debug bool + Fetcher fetcher.Interface + MinFetchInterval time.Duration + NoRestart bool + NoRestartAfterFetch bool + NoWarn bool + PreUpgrade func(tempBinaryPath string) error + Program func(state State) + Required bool + RestartSignal os.Signal + TerminateTimeout time.Duration + type OverseerListener struct + func (l *OverseerListener) Accept() (net.Conn, error) + func (l *OverseerListener) Close() error + func (l *OverseerListener) File() *os.File + type State struct + Address string + Addresses []string + BinPath string + Enabled bool + GracefulShutdown chan bool + ID string + Listener net.Listener + Listeners []net.Listener + StartedAt time.Time + type Win32_Process struct — windows/amd64 + CSCreationClassName string + CSName string + Caption *string + CommandLine *string + CreationClassName string + CreationDate *time.Time + Description *string + ExecutablePath *string + ExecutionState *uint16 + HandleCount uint32 + KernelModeTime uint64 + MaximumWorkingSetSize *uint32 + MinimumWorkingSetSize *uint32 + Name string + OSCreationClassName string + OSName string + OtherOperationCount uint64 + OtherTransferCount uint64 + PageFaults uint32 + PageFileUsage uint32 + ParentProcessID uint32 + PeakPageFileUsage uint32 + PeakVirtualSize uint64 + PeakWorkingSetSize uint32 + Priority uint32 + PrivatePageCount uint64 + ProcessID uint32 + ReadOperationCount uint64 + ReadTransferCount uint64 + Status *string + TerminationDate *time.Time + ThreadCount uint32 + UserModeTime uint64 + WorkingSetSize uint64 + WriteOperationCount uint64 + WriteTransferCount uint64 + func GetWin32Proc(pid int32) ([]Win32_Process, error) + func GetWin32ProcWithContext(ctx context.Context, pid int32) ([]Win32_Process, error)