service

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Install(binPath, token string) error
	Uninstall() error
	Running() bool
}

Service 系统服务管理接口

func New

func New() Service

type Systemd

type Systemd struct{}

func (*Systemd) Install

func (s *Systemd) Install(binPath, token string) error

func (*Systemd) Running

func (s *Systemd) Running() bool

func (*Systemd) Uninstall

func (s *Systemd) Uninstall() error

Jump to

Keyboard shortcuts

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