Documentation
¶
Index ¶
- type BoltDeleteRequest
- type BoltGetRequest
- type BoltGetResponse
- type BoltListRequest
- type BoltListResponse
- type BoltRequest
- type ConfigGetRequest
- type ConfigPutRequest
- type PluginConfigDownloadRequest
- type PluginConfigResponse
- type PluginConfigUploadRequest
- type PluginRequest
- type PluginResponse
- type Response
- func ErrDeny(msg string, data ...any) (int, Response)
- func ErrIpt(msg string, data ...any) (int, Response)
- func ErrJwt(msg string, data ...any) (int, Response)
- func ErrOpt(msg string, data ...any) (int, Response)
- func ErrSvr(msg string, data ...any) (int, Response)
- func Ext(msg string, data ...any) (int, Response)
- func Fail(msg string, data ...any) (int, Response)
- func Page(msg string, items any, count int) (int, Response)
- func Succ(msg string, data ...any) (int, Response)
- type SelectEpRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDeleteRequest ¶ added in v0.6.1
type BoltDeleteRequest struct {
BoltRequest
Bucket string `json:"bucket" form:"bucket" binding:"required"`
Key string `json:"key" form:"key" binding:"required"`
}
type BoltGetRequest ¶ added in v0.5.3
type BoltGetRequest struct {
BoltRequest
Bucket string `json:"bucket" form:"bucket" binding:"required"`
Key string `json:"key" form:"key" binding:"required"`
}
type BoltGetResponse ¶ added in v0.5.3
type BoltListRequest ¶ added in v0.5.3
type BoltListRequest struct {
BoltRequest
Type string `json:"type" form:"type" binding:"required"` // bucket, key
Bucket string `json:"bucket" form:"bucket"` // 当type=key时,需要此参数
}
type BoltListResponse ¶ added in v0.5.3
type BoltRequest ¶ added in v0.5.3
type BoltRequest struct {
DB string `json:"db" form:"db" default:"bolt"` // bolt, bolt_sub
}
type ConfigGetRequest ¶
type ConfigGetRequest struct {
// Key 使用路径方式获取指定yaml key内容
// [暂不支持] 如 setting.save_path, advanced.download.queue_max_num
// all 获取所有配置项,json格式
// default 获取默认值配置项,json格式
// comment 获取所有配置项的注释文本,json格式
// raw 获取所有配置项,yaml文件内容,base64编码
Key string `json:"key" form:"key" default:"all"`
}
type ConfigPutRequest ¶ added in v0.6.2
type ConfigPutRequest struct {
// Key 用路径方式更新指定yaml key内容
// [暂不支持] 如 setting/save_path, advanced/download/queue_max_num
// all 更新所有配置项,json格式
Key string `json:"key" form:"key" default:"all"`
// Backup 备份原配置文件
Backup *bool `json:"backup" form:"backup" default:"true"`
Config *configs.Config `json:"config"`
}
type PluginConfigDownloadRequest ¶
type PluginConfigDownloadRequest struct {
PluginRequest
}
type PluginConfigResponse ¶
type PluginConfigResponse struct {
PluginResponse
Data string `json:"data"` //base64编码后的数据
}
type PluginConfigUploadRequest ¶
type PluginConfigUploadRequest struct {
PluginRequest
Data string `json:"data" binding:"required"` //base64格式的文本数据
}
type PluginRequest ¶
type PluginRequest struct {
Name string `json:"name" form:"name" binding:"required"` //插件文件名
}
func (PluginRequest) FindFile ¶
func (p PluginRequest) FindFile() (string, error)
type PluginResponse ¶
type PluginResponse struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.