mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
客户端授权验证
This commit is contained in:
@@ -7,6 +7,8 @@ const CtxKeyIsUserLogin = "ckiul"
|
||||
|
||||
// CtxKeyOauth2State ..
|
||||
const CtxKeyOauth2State = "cko2s"
|
||||
// CtxKeyServer ..
|
||||
const CtxKeyServer = "cks"
|
||||
|
||||
// Common ..
|
||||
type Common struct {
|
||||
|
||||
@@ -2,6 +2,12 @@ package model
|
||||
|
||||
import pb "github.com/p14yground/nezha/proto"
|
||||
|
||||
const (
|
||||
_ = iota
|
||||
// MTReportState ..
|
||||
MTReportState
|
||||
)
|
||||
|
||||
// State ..
|
||||
type State struct {
|
||||
CPU float64
|
||||
@@ -39,6 +45,8 @@ type Host struct {
|
||||
Virtualization string
|
||||
Uptime string
|
||||
BootTime string
|
||||
IP string
|
||||
CountryCode string
|
||||
Version string
|
||||
}
|
||||
|
||||
@@ -52,6 +60,8 @@ func (h *Host) PB() *pb.Host {
|
||||
Virtualization: h.Virtualization,
|
||||
Uptime: h.Uptime,
|
||||
BootTime: h.BootTime,
|
||||
Ip: h.IP,
|
||||
CountryCode: h.CountryCode,
|
||||
Version: h.Version,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user