service

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetService

func GetService() (kservice.Service, error)

func GetServiceState

func GetServiceState() int

func InstallService

func InstallService() error

安装服务

func RegisterStartFunc

func RegisterStartFunc(f func())

func Restart

func Restart() error

func SetConfigureFile

func SetConfigureFile(f string)

func SetListenPort

func SetListenPort(port int)

func Start

func Start() error

func Stop

func Stop() error

func UninstallService

func UninstallService() error

卸载服务

Types

type Service

type Service struct {
}

func (*Service) Start

func (p *Service) Start(s kservice.Service) error

func (*Service) Stop

func (p *Service) Stop(s kservice.Service) error

Jump to

Keyboard shortcuts

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