model

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	Principal     interface{}            // 认证通过前,存放username;认证通过后,存放User信息
	Credentials   interface{}            // 认证通过前,存放password;认证通过后,清空,返回nil
	Details       map[string]interface{} // 存放额外的信息,选填,比如client Ip
	Authenticated bool                   // 是否已经通过认证
	AuthMethod    string                 // 认证方式,比如jwt
}

Jump to

Keyboard shortcuts

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