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 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
Click to show internal directories.
Click to hide internal directories.