auth

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinAuth

type GinAuth interface {
	Guard(name string) GinAuth
	Parse(ctx request.Context) error
	User(ctx request.Context) *sysmodel.PlatformAdmin
	Login(ctx request.Context, Mobile string, Password string) (newAdmin *sysmodel.PlatformAdmin, token string, err error)
	LoginUsingID(ctx request.Context, userId int64) (newAdmin *sysmodel.PlatformAdmin, token string, err error)
	Refresh(ctx request.Context) (token string, err error)
	Logout(ctx request.Context) bool
}

type IrisAuth

type IrisAuth interface {
	Guard(name string) IrisAuth
}

Jump to

Keyboard shortcuts

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