types

package
v0.0.0-...-f0a2dc7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeferCloseOrder        = "defer:order:close"
	ForthwithActivateOrder = "forthwith:order:activate"
)
View Source
const (
	SchedulerCheckSubscription = "scheduler:check:subscription"
	SchedulerTotalServerData   = "scheduler:total:server"
	SchedulerResetTraffic      = "scheduler:reset:traffic"
)
View Source
const (
	// ForthwithGetCountry forthwith country get
	ForthwithGetCountry = "forthwith:country:get"
)
View Source
const (
	// ForthwithSendEmail forthwith send email
	ForthwithSendEmail = "forthwith:email:send"
)
View Source
const (
	// ForthwithSendEmail forthwith send email
	ForthwithSendSms = "forthwith:sms:send"
)
View Source
const ForthwithTrafficStatistics = "forthwith:traffic:statistics"

Variables

This section is empty.

Functions

This section is empty.

Types

type DeferCloseOrderPayload

type DeferCloseOrderPayload struct {
	OrderNo string `json:"order_no"`
}

type ForthwithActivateOrderPayload

type ForthwithActivateOrderPayload struct {
	OrderNo string `json:"order_no"`
}

type GetNodeCountry

type GetNodeCountry struct {
	Protocol   string `json:"protocol"`
	ServerAddr string `json:"server_addr"`
}

type NodeStatus

type NodeStatus struct {
	OnlineUsers []OnlineUser `json:"online_users"`
	Status      ServerStatus `json:"status"`
	LastAt      int64        `json:"last_at"`
}

type OnlineUser

type OnlineUser struct {
	UID int64  `json:"uid"`
	IP  string `json:"ip"`
}

type SendEmailPayload

type SendEmailPayload struct {
	Email   string `json:"to"`
	Subject string `json:"subject"`
	Content string `json:"content"`
}

type SendSmsPayload

type SendSmsPayload struct {
	Type          uint8  `json:"type"`
	Telephone     string `json:"telephone"`
	TelephoneArea string `json:"area"`
	Content       string `json:"content"`
}

type ServerStatus

type ServerStatus struct {
	Cpu       float64 `json:"cpu"`
	Mem       float64 `json:"mem"`
	Disk      float64 `json:"disk"`
	UpdatedAt int64   `json:"updated_at"`
}

type ServerTrafficCount

type ServerTrafficCount struct {
	ServerId  int64  `json:"server_id"`
	Name      string `json:"name"`
	Today     int64  `json:"today"`
	Yesterday int64  `json:"yesterday"`
}

type TrafficStatistics

type TrafficStatistics struct {
	ServerId int64         `json:"server_id"`
	Logs     []UserTraffic `json:"logs"`
}

type UserTraffic

type UserTraffic struct {
	SID      int64 `json:"uid"`
	Upload   int64 `json:"upload"`
	Download int64 `json:"download"`
}

Jump to

Keyboard shortcuts

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