constant

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Int64   int64  = 0
	Uint32  uint32 = 0
	DevMode        = "dev"
)

Used for type cloning conversion

View Source
const TempOrderCacheKey = "temp_order:%s"

TempOrderCacheKey Cache to Redis Key eg: temp_order:order_no

Variables

View Source
var (
	Version   = "unknown version"
	BuildTime = "unknown time"
)

Version PPanel version

Functions

This section is empty.

Types

type CtxKey

type CtxKey string
const (
	CtxKeyUser        CtxKey = "user"
	CtxKeySessionID   CtxKey = "sessionId"
	CtxKeyRequestHost CtxKey = "requestHost"
	CtxKeyPlatform    CtxKey = "platform"
	CtxKeyPayment     CtxKey = "payment"
)

type TemporaryOrderInfo

type TemporaryOrderInfo struct {
	OrderNo    string `json:"order_no"`
	Identifier string `json:"identifier"`
	AuthType   string `json:"auth_type"`
	Password   string `json:"password"`
	InviteCode string `json:"invite_code,omitempty"`
}

func (TemporaryOrderInfo) Marshal

func (t TemporaryOrderInfo) Marshal() string

type VerifyType

type VerifyType uint8

VerifyType is the type of verification code

const (
	Register VerifyType = iota + 1
	Security
)

func ParseVerifyType

func ParseVerifyType(i uint8) VerifyType

func (VerifyType) String

func (v VerifyType) String() string

Jump to

Keyboard shortcuts

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