Documentation
¶
Index ¶
- Constants
- func GetAllValue(ctx context.Context) ([]any, error)
- func GetRemoteAddrValue(ctx context.Context) (string, error)
- func GetRequestValue(ctx context.Context) (string, error)
- func GetTimestampValue(ctx context.Context) (int64, error)
- func GetUserValue(ctx context.Context) (int, error)
- func GetValue(ctx context.Context, key any) any
- func MustGetRemoteAddrValue(ctx context.Context) string
- func MustGetRequestValue(ctx context.Context) string
- func MustGetTimestampValue(ctx context.Context) int64
- func MustGetUserValue(ctx context.Context) int
- type RemoteAddrType
- type RequestKeyType
- type TimestampType
- type UserKeyType
Constants ¶
View Source
const ( // 时间 TimestampKey TimestampType = "Timestamp" // 地点 RemoteAddrKey RemoteAddrType = "RemoteAddr" // 用户 UserKey UserKeyType = "UserID" // 请求 RequestKey RequestKeyType = "RequestID" )
Variables ¶
This section is empty.
Functions ¶
func MustGetRemoteAddrValue ¶
func MustGetRequestValue ¶
func MustGetTimestampValue ¶
func MustGetUserValue ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.