Documentation ¶
Index ¶
- Constants
- func EnvKey(ctx echo.Context) string
- func GetLastLoginInfo(ctx echo.Context, ownerType string, ownerId uint64, sessionId string) (*dbschema.NgingLoginLog, error)
- func Unpack(ctx echo.Context, encrypted string) (password string, err error)
- func UnsetSession(ctx echo.Context, ownerType string)
- func Validate(ctx echo.Context, lastIP string, ownerType string, ownerId uint64) bool
- func VerifyEnvKey(ctx echo.Context, envKey string, dontCheckTime ...bool) error
- type Environment
- type PE
Constants ¶
View Source
const InvalidIPAddress = `invalid ip address`
Variables ¶
This section is empty.
Functions ¶
func GetLastLoginInfo ¶
func UnsetSession ¶
Types ¶
type Environment ¶
type Environment struct { UserAgent string Location ip2regionparser.IpInfo }
func GetEnvFromSession ¶
func GetEnvFromSession(ctx echo.Context, ownerType string) *Environment
func (*Environment) SetSession ¶
func (e *Environment) SetSession(ctx echo.Context, ownerType string)
Click to show internal directories.
Click to hide internal directories.