Documentation
¶
Index ¶
Constants ¶
View Source
const ( EmailTypeVerify = "verify" EmailTypeMaintenance = "maintenance" EmailTypeExpiration = "expiration" EmailTypeTrafficExceed = "traffic_exceed" EmailTypeCustom = "custom" )
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" SchedulerTrafficStat = "scheduler:traffic:stat" )
View Source
const ( // ScheduledBatchSendEmail scheduled batch send email ScheduledBatchSendEmail = "scheduled:email:batch" // ForthwithQuotaTask create quota task immediately ForthwithQuotaTask = "forthwith:quota:task" // SchedulerExchangeRate fetch exchange rate task SchedulerExchangeRate = "scheduler:exchange:rate" )
View Source
const (
// ForthwithSendEmail forthwith send email
ForthwithSendEmail = "forthwith:email:send"
)
View Source
const (
// ForthwithSendSms 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 NodeStatus ¶
type NodeStatus struct {
OnlineUsers []OnlineUser `json:"online_users"`
Status ServerStatus `json:"status"`
LastAt int64 `json:"last_at"`
}
type OnlineUser ¶
type SendEmailPayload ¶
type SendSmsPayload ¶
type ServerStatus ¶
type ServerTrafficCount ¶
type TrafficStatistics ¶
type TrafficStatistics struct {
ServerId int64 `json:"server_id"`
Protocol string `json:"protocol"`
Logs []UserTraffic `json:"logs"`
}
type UserTraffic ¶
Click to show internal directories.
Click to hide internal directories.