daemon

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSG_SERVICE_RUNNING = "El servicio en ejecución"
	MSG_SERVICE_CLOSED  = "El servicio detenido"
	MSG_CONFIG_REQUIRED = "Configuración: Sin parametros"
)

Variables

This section is empty.

Functions

func Registry

func Registry(name string, cmd RepositoryCMD)

Types

type RepositoryCMD

type RepositoryCMD interface {
	Help(key string)
	Version() string
	SetConfig(cfg string)
	Status() et.Json
	Start() et.Item
	Stop() et.Item
	Restart() et.Item
}

func New

func New() RepositoryCMD

type Systemd

type Systemd struct {
	// contains filtered or unexported fields
}

func (*Systemd) Help

func (s *Systemd) Help(key string)

func (*Systemd) Restart

func (s *Systemd) Restart() et.Item

func (*Systemd) SetConfig

func (s *Systemd) SetConfig(cfg string)

func (*Systemd) Start

func (s *Systemd) Start() et.Item

func (*Systemd) Status

func (s *Systemd) Status() et.Json

func (*Systemd) Stop

func (s *Systemd) Stop() et.Item

func (*Systemd) Version

func (s *Systemd) Version() string

type TypeCommand

type TypeCommand string
const (
	CMD_Help    TypeCommand = "help"
	CMD_Version TypeCommand = "version"
	CMD_Status  TypeCommand = "status"
	CMD_Start   TypeCommand = "start"
	CMD_Stop    TypeCommand = "stop"
	CMD_Restart TypeCommand = "restart"
	CMD_Conf    TypeCommand = "conf"
)

func ToTypeCommand

func ToTypeCommand(val string) TypeCommand

Jump to

Keyboard shortcuts

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