Documentation ¶
Index ¶
Constants ¶
View Source
const ( FORM_HEADER string = "application/x-www-form-urlencoded" JSON_HEADER string = "application/json; charset=UTF-8" )
Variables ¶
This section is empty.
Functions ¶
func GetRandomString ¶
*
- 生成随机字符串
- index:取随机序列的前index个
- 0-9:10
- 0-9a-z:10+24
- 0-9a-zA-Z:10+24+24
- length:需要生成随机字符串的长度
func LoadCacheData ¶
Types ¶
type Log ¶
type Log struct { ReportCaller bool Name string Level string Format string LogOutChan chan string LogFile *os.File // contains filtered or unexported fields }
func (*Log) SetDefaults ¶
func (log *Log) SetDefaults()
type Request ¶
func NewRequest ¶
func NewRequest() *Request
type WeChatLoggerHook ¶
func NewWeChatLoggerHook ¶
func NewWeChatLoggerHook(name string, outChan chan string) *WeChatLoggerHook
func (*WeChatLoggerHook) Levels ¶
func (hook *WeChatLoggerHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.