Documentation ¶
Index ¶
- func DisableXFFPrompt()
- func FindAllMenuMaps(langCode string, nodeLogsType string, countUnreadNodeLogs int64, ...) []maps.Map
- func NewUserMustAuth(module string) *userMustAuth
- func NotifyIPItemsCountChanges()
- func NotifyNodeLogsCountChange()
- type LangHelper
- type UserShouldAuth
- func (this *UserShouldAuth) AdminId() int
- func (this *UserShouldAuth) BeforeAction(actionPtr actions.ActionWrapper, paramName string) (goNext bool)
- func (this *UserShouldAuth) IsUser() bool
- func (this *UserShouldAuth) Logout()
- func (this *UserShouldAuth) StoreAdmin(adminId int64, remember bool, localSid string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAllMenuMaps ¶ added in v0.4.8
func NewUserMustAuth ¶
func NewUserMustAuth(module string) *userMustAuth
func NotifyIPItemsCountChanges ¶ added in v0.5.2
func NotifyIPItemsCountChanges()
func NotifyNodeLogsCountChange ¶ added in v0.5.2
func NotifyNodeLogsCountChange()
Types ¶
type LangHelper ¶ added in v1.2.1
type LangHelper struct { }
func (*LangHelper) Lang ¶ added in v1.2.1
func (this *LangHelper) Lang(actionPtr actions.ActionWrapper, messageCode langs.MessageCode, args ...any) string
type UserShouldAuth ¶
type UserShouldAuth struct {
// contains filtered or unexported fields
}
func (*UserShouldAuth) AdminId ¶
func (this *UserShouldAuth) AdminId() int
func (*UserShouldAuth) BeforeAction ¶
func (this *UserShouldAuth) BeforeAction(actionPtr actions.ActionWrapper, paramName string) (goNext bool)
func (*UserShouldAuth) IsUser ¶
func (this *UserShouldAuth) IsUser() bool
func (*UserShouldAuth) Logout ¶
func (this *UserShouldAuth) Logout()
func (*UserShouldAuth) StoreAdmin ¶
func (this *UserShouldAuth) StoreAdmin(adminId int64, remember bool, localSid string)
StoreAdmin 存储用户名到SESSION
Click to show internal directories.
Click to hide internal directories.