daemon

package
v0.0.0-...-2a50bf3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package daemon uses kardianos service to make the app run as service / daemon on windows / linux.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Control

func Control(s service.Service, action string, statusLogger agentstatus.AgentStatus) error

Control wraps the function from service package and adds the supported action "run" to the service.

func CreateConfig

func CreateConfig(name, displayName, description string) *service.Config

CreateConfig creates and returns Config pointer for the service.

func CreateService

func CreateService(osCollection func(), sqlCollection func(), sc *service.Config, statusLogger agentstatus.AgentStatus) (service.Service, error)

CreateService initializes and returns service, or error if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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