daemore

package module
v0.0.0-...-d57afb9 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

daemore

daemon -> daemore,达摩。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	Service service.Service
	// contains filtered or unexported fields
}

func NewDaemon

func NewDaemon(opt DaemonOption, username ...string) (d *Daemon, err error)

func (*Daemon) Config

func (d *Daemon) Config() *service.Config

func (*Daemon) Run

func (d *Daemon) Run()

func (*Daemon) ServiceInstall

func (d *Daemon) ServiceInstall(args ...string) (err error)

func (*Daemon) ServiceRestart

func (d *Daemon) ServiceRestart() (err error)

func (*Daemon) ServiceStart

func (d *Daemon) ServiceStart() (err error)

func (*Daemon) ServiceStatus

func (d *Daemon) ServiceStatus() (status service.Status, err error)

func (*Daemon) ServiceStop

func (d *Daemon) ServiceStop() (err error)

func (*Daemon) ServiceUninstall

func (d *Daemon) ServiceUninstall() (err error)

func (*Daemon) Start

func (d *Daemon) Start(s service.Service) error

func (*Daemon) Stop

func (d *Daemon) Stop(s service.Service) error

type DaemonOption

type DaemonOption struct {
	Name        string
	DisplayName string
	Description string
	Callback    func()
}

Jump to

Keyboard shortcuts

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