service

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultLogger

func GetDefaultLogger(s service.Service) (service.Logger, error)

GetDefaultLogger returns a logger that works with the service manager.

func Manage

func Manage(cfg Config, action string, runFunc func(ctx context.Context)) error

Manage handles service installation, uninstallation, starting, and stopping.

Types

type Config

type Config struct {
	Name             string
	DisplayName      string
	Description      string
	UserName         string
	Arguments        []string
	WorkingDirectory string
}

Config represents the service configuration.

Jump to

Keyboard shortcuts

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