app

package
Version: v0.0.0-...-eda4e18 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GO_TYPE = iota + 1
	JAVA_TYPE
	PHP_TYPE
	OTHER_TYPE
)

Variables

This section is empty.

Functions

func AddApp

func AddApp(app App, validate bool) error

func CheckAppExist

func CheckAppExist(name string) bool

func DeleteApp

func DeleteApp(name string, validate bool) error

func EditApp

func EditApp(app App, validate bool) error

func ReloadAppConfig

func ReloadAppConfig()

func SaveAppConfig

func SaveAppConfig(app App) error

Types

type App

type App struct {
	Name         string          `json:"name"`
	CaddyConfig  json.RawMessage `json:"caddyConfig" binding:"required"`
	Type         int             `json:"type" binding:"required"`
	Path         string          `json:"path"`
	AutoReboot   bool            `json:"autoReboot"`
	BootArgument string          `json:"bootArgument"`
}

func GetApp

func GetApp(name string) (App, error)

func GetApps

func GetApps() []App

func LoadAppConfig

func LoadAppConfig(name string) (App, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL