basic

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() auth.IAuthFactory

NewFactory 生成一个 auth_apiKey工厂

func Register

func Register()

Register 注册auth驱动工厂

Types

type Config

type Config struct {
	application.Auth
	Users []*User `json:"users" label:"用户列表"`
}

type Pattern

type Pattern struct {
	Username string `json:"username" label:"用户名"`
	Password string `json:"password" label:"密码"`
}

type User

type User struct {
	Pattern Pattern `json:"pattern" label:"用户信息"`
	application.User
}

func (*User) Username

func (u *User) Username() string

Jump to

Keyboard shortcuts

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