package
Version:
v0.6.3
Opens a new window with list of versions in this module.
Published: Jun 26, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewFactory 生成一个 auth_apiKey工厂
type Config struct {
HideCredentials bool `json:"hide_credentials" label:"是否隐藏证书"`
User []User `json:"user" label:"用户列表"`
}
Config apiKey配置内容
type User struct {
Apikey string `json:"apikey" label:"密钥(Apikey)" nullable:"false"`
Labels map[string]string `json:"labels" label:"用户标签"`
Expire int64 `json:"expire" format:"date-time" label:"过期时间"`
}
User 用户信息
Source Files
¶
Click to show internal directories.
Click to hide internal directories.