Documentation
¶
Index ¶
- type DefaultLogger
- func (d *DefaultLogger) Ban(loginType string, id interface{}, service string, level int, time int64)
- func (d *DefaultLogger) CloseSafe(loginType string, token string, service string)
- func (d *DefaultLogger) Enable(bool bool)
- func (d *DefaultLogger) IsEnabled() bool
- func (d *DefaultLogger) Kickout(loginType string, id interface{}, tokenValue string)
- func (d *DefaultLogger) Login(loginType string, id interface{}, tokenValue string, loginModel *model.Login)
- func (d *DefaultLogger) Logout(loginType string, id interface{}, tokenValue string)
- func (d *DefaultLogger) OpenSafe(loginType string, token string, service string, time int64)
- func (d *DefaultLogger) RefreshToken(tokenValue string, id interface{}, timeout int64)
- func (d *DefaultLogger) Replace(loginType string, id interface{}, tokenValue string)
- func (d *DefaultLogger) StartCleanTimer(period int64)
- func (d *DefaultLogger) UnBan(loginType string, id interface{}, service string)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
func (*DefaultLogger) Ban ¶
func (d *DefaultLogger) Ban(loginType string, id interface{}, service string, level int, time int64)
func (*DefaultLogger) CloseSafe ¶ added in v0.0.9
func (d *DefaultLogger) CloseSafe(loginType string, token string, service string)
func (*DefaultLogger) Enable ¶
func (d *DefaultLogger) Enable(bool bool)
func (*DefaultLogger) IsEnabled ¶
func (d *DefaultLogger) IsEnabled() bool
func (*DefaultLogger) Kickout ¶
func (d *DefaultLogger) Kickout(loginType string, id interface{}, tokenValue string)
func (*DefaultLogger) Login ¶
func (d *DefaultLogger) Login(loginType string, id interface{}, tokenValue string, loginModel *model.Login)
func (*DefaultLogger) Logout ¶
func (d *DefaultLogger) Logout(loginType string, id interface{}, tokenValue string)
func (*DefaultLogger) OpenSafe ¶ added in v0.0.9
func (d *DefaultLogger) OpenSafe(loginType string, token string, service string, time int64)
func (*DefaultLogger) RefreshToken ¶
func (d *DefaultLogger) RefreshToken(tokenValue string, id interface{}, timeout int64)
func (*DefaultLogger) Replace ¶
func (d *DefaultLogger) Replace(loginType string, id interface{}, tokenValue string)
func (*DefaultLogger) StartCleanTimer ¶
func (d *DefaultLogger) StartCleanTimer(period int64)
func (*DefaultLogger) UnBan ¶
func (d *DefaultLogger) UnBan(loginType string, id interface{}, service string)
Click to show internal directories.
Click to hide internal directories.