daemon

package
v0.77.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

Daemon service.

Daemon System service is responsible for managing system daemon services.

Service Id Action Description Request Response
daemon status check status of system daemon StatusRequest Info
daemon start start requested system daemon StartRequest Info
daemon stop stop requested system daemon StopRequest Info

Documentation

Index

Constants

View Source
const ServiceID = "daemon"

ServiceID represents system daemon service

Variables

This section is empty.

Functions

func New

func New() endly.Service

NewDaemonService creates a new system service.

Types

type Info

type Info struct {
	Service  string //requested service name
	Path     string //path
	Pid      int    //process if
	Type     int    //type
	Domain   string //command how service was launched
	State    string //state
	Launched bool
}

Info represents a service info

func (*Info) IsActive

func (s *Info) IsActive() bool

IsActive returns true if service is running

type StartRequest

type StartRequest struct {
	Target    *location.Resource `required:"true" description:"target host"`                                                                //target host
	Service   string             `required:"true" `                                                                                         //service name
	Exclusion string             `description:"optional exclusion fragment in case there are more then one matching provided name service"` //exclusion if there is more than one service matching service group
}

StartRequest represents service request start

type StartResponse

type StartResponse struct {
	*Info
}

StartResponse represents daemon start response

type StatusRequest

type StatusRequest struct {
	Target    *location.Resource `required:"true" description:"target host"` //target host
	Service   string             `required:"true" `                          //service name
	Exclusion string             //exclusion if there is more than one service matching service group
}

StatusRequest represents status request

type StatusResponse

type StatusResponse struct {
	*Info
}

StatusResponse represent status response

type StopRequest

type StopRequest struct {
	Target    *location.Resource `required:"true" description:"target host"` //target host
	Service   string             `required:"true"`                           //service name
	Exclusion string             //exclusion if there is more than one service matching service group
}

StopRequest represents a stop request.

type StopResponse

type StopResponse struct {
	*Info
}

StopResponse represents a stop response

Jump to

Keyboard shortcuts

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