Documentation
¶
Index ¶
- Constants
- type BaseService
- type IService
- type LinuxService
- func (s LinuxService) AddAfter(n string)
- func (s LinuxService) Install() (string, error)
- func (s LinuxService) MakeService()
- func (s LinuxService) Reload() (string, error)
- func (s LinuxService) Start() (string, error)
- func (s LinuxService) Stop() (string, error)
- func (s LinuxService) UnInstall() (string, error)
- type WinService
Constants ¶
View Source
const ( Linux_Server_Net = "network.target" Linux_Server_Sshd = "sshd.service" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseService ¶
type BaseService struct { ExeFile string ExeName string ExePath string Params string After []string }
func (BaseService) ParseFile ¶
func (b BaseService) ParseFile(file string) (string, string)
type IService ¶
type LinuxService ¶
type LinuxService struct {
BaseService
}
func (LinuxService) AddAfter ¶
func (s LinuxService) AddAfter(n string)
func (LinuxService) Install ¶
func (s LinuxService) Install() (string, error)
func (LinuxService) MakeService ¶
func (s LinuxService) MakeService()
func (LinuxService) Reload ¶
func (s LinuxService) Reload() (string, error)
func (LinuxService) Start ¶
func (s LinuxService) Start() (string, error)
func (LinuxService) Stop ¶
func (s LinuxService) Stop() (string, error)
func (LinuxService) UnInstall ¶
func (s LinuxService) UnInstall() (string, error)
type WinService ¶
type WinService struct {
BaseService
}
func (WinService) AddAfter ¶
func (s WinService) AddAfter(n string)
func (WinService) Install ¶
func (s WinService) Install() (string, error)
func (WinService) Reload ¶
func (s WinService) Reload() (string, error)
func (WinService) Start ¶
func (s WinService) Start() (string, error)
func (WinService) Stop ¶
func (s WinService) Stop() (string, error)
func (WinService) UnInstall ¶
func (s WinService) UnInstall() (string, error)
Click to show internal directories.
Click to hide internal directories.