daemon

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package daemon implements the main service logic, including lifecycle management and coordination of components like the scale reader and WebSocket server.

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
	// contains filtered or unexported fields
}

Service implements svc.Service for Windows Service Control Manager

func New

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

New creates a new service instance

func (*Service) Init

func (s *Service) Init(_ 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