apikey

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

NewFactory 生成一个 auth_apiKey工厂

func Register

func Register(register eosc.IExtenderDriverRegister)

Register 注册auth驱动工厂

func TOfData

func TOfData(data interface{}) reflect.Kind

TOfData 获取数据的类型

Types

type Config

type Config struct {
	Driver          string `json:"driver"`
	Name            string `json:"name"`
	HideCredentials bool   `json:"hide_credentials"`
	User            []User `json:"user"`
}

Config apiKey配置内容

type User

type User struct {
	Apikey string            `json:"apikey"`
	Label  map[string]string `json:"label"`
	Expire int64             `json:"expire"`
}

User 用户信息

Jump to

Keyboard shortcuts

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