controller

package
v0.20.23 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 52 Imported by: 0

Documentation

Overview

为 v1 版本提供兼容接口

Index

Constants

This section is empty.

Variables

View Source
var XorKey byte

Functions

func ServeWeb

func ServeWeb(port uint) *http.Server

Types

type BatchUpdateServerGroupRequest

type BatchUpdateServerGroupRequest struct {
	Servers []uint64
	Group   string
}

type Data

type Data struct {
	Now     int64           `json:"now,omitempty"`
	Servers []*model.Server `json:"servers,omitempty"`
}

type TokenForm

type TokenForm struct {
	Note string
}

type V1Response

type V1Response[T any] struct {
	Success bool   `json:"success,omitempty"`
	Data    T      `json:"data,omitempty"`
	Error   string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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