app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var App appService

Functions

func ReStared added in v1.0.10

func ReStared(ctx *gin.Context)

func ReStartPage added in v1.0.22

func ReStartPage(ctx context.Context, page, size int64) (*cache.PageCache[ReStartLog], *errors.Error)

func Restart

func Restart(ctx *gin.Context)

func RestartLogs added in v1.0.22

func RestartLogs(ctx *gin.Context)

func Stop

func Stop(ctx *gin.Context)

Types

type ReStartLog added in v1.0.22

type ReStartLog struct {
	StartTime int64    `json:"startTime"`
	StartSrc  StartSrc `json:"startSrc"`
	Log       string   `json:"log"`
}

func (*ReStartLog) Save added in v1.0.22

func (re *ReStartLog) Save(ctx context.Context, startSrc StartSrc, log string) *errors.Error

type RunBack

type RunBack func(log string)

type StartSrc added in v1.0.22

type StartSrc string
const (
	StartSrcManual  StartSrc = "manual"
	StartSrcDeploy  StartSrc = "deploy"
	StartSrcCrash   StartSrc = "crash"
	StartSrcOveruse StartSrc = "overuse"
)

func (StartSrc) String added in v1.0.22

func (s StartSrc) String() string

Jump to

Keyboard shortcuts

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