Documentation ¶
Index ¶
- Constants
- func ConstructByteOfQuarters(first, second, third, fourth byte) byte
- func ConstructByteOfQuartersAsSlice(b []byte) byte
- func GetConfAbPath() string
- func GetCpuInfo() (*cpu.InfoStat, error)
- func GetCpuPercent() (float64, error)
- func GetCurrentAbPath() string
- func GetExtractedFilename(origin string) string
- func GetFileHash(path string) (string, error)
- func GetLastTwoBits(b byte) byte
- func GetMediaAbPath() string
- func GetMemInfo() (*mem.VirtualMemoryStat, error)
- func IsImageType(p string) (bool, error)
- func IsNum(s string) bool
- func QuartersOfByte(b byte) [4]byte
- func RemoteIp(c *app.RequestContext) string
- func ResponseError(c *app.RequestContext, msg string, err error)
- func ResponseOK(c *app.RequestContext, msg string, data interface{})
- func SetLastTwoBits(b byte, value byte) byte
Constants ¶
View Source
const ( XForwardedFor = "X-Forwarded-For" XRealIP = "X-Real-IP" )
Variables ¶
This section is empty.
Functions ¶
func ConstructByteOfQuarters ¶
ConstructByteOfQuarters constructs a byte of it's four quarters given
func ConstructByteOfQuartersAsSlice ¶
ConstructByteOfQuartersAsSlice constructs a byte of it's four quarters given as byte slice
func GetExtractedFilename ¶
GetExtractedFilename 获取被提取文件名
func GetLastTwoBits ¶
GetLastTwoBits returns byte containing only last two bits of given byte
func GetMemInfo ¶
func GetMemInfo() (*mem.VirtualMemoryStat, error)
func QuartersOfByte ¶
QuartersOfByte returns a byte's four quarters of bits
func ResponseError ¶
func ResponseError(c *app.RequestContext, msg string, err error)
ResponseError 错误响应体
func ResponseOK ¶
func ResponseOK(c *app.RequestContext, msg string, data interface{})
ResponseOK 成功响应体
func SetLastTwoBits ¶
SetLastTwoBits modifies last two bits of given byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.