adminrestartserver

package
v0.0.0-...-ca656e9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodePasswordError = -3
	CodeSecretError   = -4
)
View Source
const MaxWaitSec = 60
View Source
const MinWaitSec = 10

Variables

This section is empty.

Functions

func Handler

func Handler(c *gin.Context)

func NewSuccessJsonData

func NewSuccessJsonData(waitsec int) data.Data

Types

type Data

type Data struct {
	Success bool `json:"success"`
	WaitSec int  `json:"waitsec"`
}

func NewSuccessData

func NewSuccessData(waitsec int) Data

type Query

type Query struct {
	Password string `json:"password"`
	Secret   string `json:"secret"`
	WaitSec  int    `json:"waitsec"`
}

Jump to

Keyboard shortcuts

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