daemon

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 11 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 struct {
	// Build info (injected via ldflags)
	BuildEnvironment string
	BuildDate        string
	BuildTime        string
	// LogServiceName is injected via ldflags during build and used for log directory naming.
	// It takes precedence over the environment config's ServiceName for log directory paths.
	// This is distinct from the Windows SCM service name and matches the Taskfile SVC_LOG_NAME_* vars.
	LogServiceName string
	// contains filtered or unexported fields
}

Service implements svc.Service for Windows Service Control Manager

func New

func New(buildEnv, buildDate, buildTime, logServiceName string) *Service

New creates a new service instance

func (*Service) Init

func (s *Service) Init(env svc.Environment) error

Init implements svc.Service

func (*Service) Start

func (s *Service) Start() error

Start implements svc.Service

func (*Service) Stop

func (s *Service) Stop() error

Stop implements svc.Service

Jump to

Keyboard shortcuts

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