Documentation ¶
Index ¶
- func FormatError(title string, logtarget string, err interface{}) (errmsg string)
- type ErrorInfo
- type HideDirFS
- type HttpCodeInfo
- type MJwt
- type RequestInfo
- type State
- func (s *State) AddErrorCount(page string, err error, num uint64) uint64
- func (s *State) AddHTTPCodeData(page string, code int, num uint64)
- func (s *State) AddRequestCount(page string, code int, num uint64) uint64
- func (s *State) QueryIntervalErrorData(key string) uint64
- func (s *State) QueryIntervalRequstData(key string) uint64
- func (s *State) ShowData(dataType string) string
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatError ¶
Types ¶
type HideDirFS ¶
type HideDirFS struct {
FileSystem http.FileSystem
}
type HttpCodeInfo ¶
type MJwt ¶
type MJwt struct { Domain string Expire int64 Name string SignKey []byte CookieMaxAge int64 // contains filtered or unexported fields }
json web token
func (*MJwt) CleanCookie ¶
func (j *MJwt) CleanCookie(rw http.ResponseWriter)
func (*MJwt) GenerateSeesionToken ¶
func (j *MJwt) GenerateSeesionToken(rw http.ResponseWriter, mapClaims jwt.MapClaims)
func (*MJwt) GenerateToken ¶
func (j *MJwt) GenerateToken(rw http.ResponseWriter, mapClaims jwt.MapClaims)
type RequestInfo ¶
type State ¶
type State struct { ServerStartTime time.Time EnableDetailRequestData bool TotalRequestCount uint64 IntervalRequestData *Store DetailRequstURLData *Store TotalErrorCount uint64 IntervalErrorData *Store DetailErrorPageData *Store DetailErrorData *Store DetailHTTPCodeData *Store // contains filtered or unexported fields }
var GlobalState *State
func (*State) AddErrorCount ¶
func (*State) AddRequestCount ¶
func (*State) QueryIntervalErrorData ¶
func (*State) QueryIntervalRequstData ¶
Click to show internal directories.
Click to hide internal directories.