Versions in this module Expand all Collapse all v1 v1.8.5 Sep 10, 2019 Changes in this version + const ComputerReboot — windows/amd64 + const ErrorCritical — windows/amd64 + const ErrorIgnore — windows/amd64 + const ErrorNormal — windows/amd64 + const ErrorSevere — windows/amd64 + const NoAction — windows/amd64 + const RunCommand — windows/amd64 + const ServiceRestart — windows/amd64 + const StartAutomatic — windows/amd64 + const StartDisabled — windows/amd64 + const StartManual — windows/amd64 + type Config struct — windows/amd64 + BinaryPathName string + Dependencies []string + Description string + DisplayName string + ErrorControl uint32 + LoadOrderGroup string + Password string + ServiceStartName string + ServiceType uint32 + StartType uint32 + TagId uint32 + type Mgr struct — windows/amd64 + Handle windows.Handle + func Connect() (*Mgr, error) + func ConnectRemote(host string) (*Mgr, error) + func (m *Mgr) CreateService(name, exepath string, c Config, args ...string) (*Service, error) + func (m *Mgr) Disconnect() error + func (m *Mgr) ListServices() ([]string, error) + func (m *Mgr) OpenService(name string) (*Service, error) + type RecoveryAction struct — windows/amd64 + Delay time.Duration + Type int + type Service struct — windows/amd64 + Handle windows.Handle + Name string + func (s *Service) Close() error + func (s *Service) Config() (Config, error) + func (s *Service) Control(c svc.Cmd) (svc.Status, error) + func (s *Service) Delete() error + func (s *Service) Query() (svc.Status, error) + func (s *Service) RebootMessage() (string, error) + func (s *Service) RecoveryActions() ([]RecoveryAction, error) + func (s *Service) RecoveryCommand() (string, error) + func (s *Service) ResetPeriod() (uint32, error) + func (s *Service) ResetRecoveryActions() error + func (s *Service) SetRebootMessage(msg string) error + func (s *Service) SetRecoveryActions(recoveryActions []RecoveryAction, resetPeriod uint32) error + func (s *Service) SetRecoveryCommand(cmd string) error + func (s *Service) Start(args ...string) error + func (s *Service) UpdateConfig(c Config) error