app

package
v0.0.0-...-3972a17 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusNormal = iota
	StatusMaintain
	StatusClosed
	StatusUpgrade
	StatusFailed
)

面板状态常量

Variables

View Source
var (
	Key    string         // 密钥
	Root   string         // 根目录
	Locale string         // 语言
	IsCli  bool           // 是否命令行
	Status = StatusNormal // 面板状态
)

面板全局变量

View Source
var (
	Version    = "0.0.0"
	BuildTime  string
	CommitHash string
	GoVersion  string
	BuildID    string
	BuildUser  string
	BuildHost  string
)

自动注入

Functions

This section is empty.

Types

type Cli

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

func NewCli

func NewCli(cmd *cli.Command, migrator *gormigrate.Gormigrate, _ *apploader.Loader) *Cli

func (*Cli) Run

func (r *Cli) Run() error

type Web

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

func NewWeb

func NewWeb(conf *koanf.Koanf, router *chi.Mux, server *hlfhr.Server, migrator *gormigrate.Gormigrate, cron *cron.Cron, queue *queue.Queue, _ *validate.Validation) *Web

func (*Web) Run

func (r *Web) Run() error

Jump to

Keyboard shortcuts

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