helpers

package
v1.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableXFFPrompt added in v1.3.5

func DisableXFFPrompt()

DisableXFFPrompt 停用XFF提示

func FindAllMenuMaps added in v0.4.8

func FindAllMenuMaps(langCode string, nodeLogsType string, countUnreadNodeLogs int64, countUnreadIPItems int64) []maps.Map

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL