aksk

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 12 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 {
	AK string `json:"ak" label:"AK"`
	SK string `json:"sk" label:"SK"`
}

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