mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2026-04-22 23:17:23 +08:00
48 lines
1.1 KiB
Go
48 lines
1.1 KiB
Go
package common
|
|
|
|
import "time"
|
|
|
|
const (
|
|
AuthorizationKey = "authorization"
|
|
SetAuthorizationKey = "x-set-authorization"
|
|
MsgKey = "msg"
|
|
UserIDKey = "x-vaala-userid"
|
|
EndpointKey = "endpoint"
|
|
IpAddrKey = "ipaddr"
|
|
HeaderKey = "header"
|
|
MethodKey = "method"
|
|
UAKey = "User-Agent"
|
|
ContentTypeKey = "Content-Type"
|
|
TraceIDKey = "TraceID"
|
|
TokenKey = "token"
|
|
FRPAuthTokenKey = "token"
|
|
ErrKey = "err"
|
|
UserInfoKey = "x-vaala-userinfo"
|
|
)
|
|
|
|
const (
|
|
ErrInvalidRequest = "invalid request"
|
|
ErrUserInfoNotValid = "user info not valid"
|
|
ErrInternalError = "internal error"
|
|
ErrParamNotValid = "param not valid"
|
|
ErrDB = "database error"
|
|
ErrNotFound = "data not found"
|
|
ErrCodeNotFound = "code not found"
|
|
ErrCodeAlreadyUsed = "code already used"
|
|
)
|
|
|
|
const (
|
|
ReqSuccess = "success"
|
|
)
|
|
|
|
const (
|
|
TimeLayout = time.RFC3339
|
|
)
|
|
|
|
const (
|
|
StatusPending = "pending"
|
|
StatusSuccess = "success"
|
|
StatusFailed = "failed"
|
|
StatusDone = "done"
|
|
)
|