package
Version:
v0.8.1
Opens a new window with list of versions in this module.
Published: Oct 18, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 24
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewFactory 创建service_http驱动工厂
Register 注册service_http驱动工厂
type Additional struct {
Key string `json:"key" label:"参数名"`
Value string `json:"value" label:"参数值"`
Position string `json:"position" label:"参数位置" enum:"header,query,body"`
Conflict string `json:"conflict" label:"参数存在替换规则" enum:"convert,origin,error"`
Labels map[string]string `json:"labels"`
}
type Auth struct {
Type string `json:"type" label:"鉴权类型"`
TokenName string `json:"token_name" label:"token名称"`
Position string `json:"position" label:"token位置" enum:"header,query,body"`
Config *application.BaseConfig `json:"config" label:"配置信息" eotype:"object"`
Users []*application.BaseConfig `json:"users" label:"用户列表"`
}
type Config struct {
Labels map[string]string `json:"labels" label:"应用标签"`
Disable bool `json:"disable" label:"是否禁用"`
Additional []*Additional `json:"additional" label:"额外参数"`
Auth []*Auth `json:"auth" label:"鉴权列表" eotype:"interface"`
}
Config App驱动配置
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.