app

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfDir string

ConfDir --conf param

View Source
var User string

User --user param

View Source
var Version string

Version application version

Functions

This section is empty.

Types

type App

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

App application

func NewApp

func NewApp() *App

NewApp create application

func (*App) Install

func (a *App) Install(*cobra.Command, []string)

Install register service

func (*App) Restart

func (a *App) Restart(*cobra.Command, []string)

Restart restart service

func (*App) Run

func (a *App) Run(*cobra.Command, []string)

Run run application

func (*App) Start

func (a *App) Start(*cobra.Command, []string)

Start start service

func (*App) Status

func (a *App) Status(*cobra.Command, []string)

Status show service status

func (*App) Stop

func (a *App) Stop(*cobra.Command, []string)

Stop stop service

func (*App) Uninstall

func (a *App) Uninstall(*cobra.Command, []string)

Uninstall unregister service

Jump to

Keyboard shortcuts

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