Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type HTTPConfig ¶
type PluginConfig ¶
type PluginConfig struct {
HTTPConfig
AppId string `json:"appId,omitempty"`
AppSecret string `json:"appSecret,omitempty"`
LogConfig config.LogConfig
}
type ProviderInterface ¶
type ProviderInterface interface {
// Initialize 插件初始化方法
Initialize(ctx *context.Context, config interface{}) error
// Name 返回插件名称
Name(ctx *context.Context) string
// Publish 发布内容的方法
Publish(ctx *context.Context, req interface{}) (interface{}, error)
}
--------------------------------------------- Provider 定义插件需要实现的接口 ---------------------------------------------
type PublishRequest ¶
type PublishResponse ¶
type PublishResponse struct {
BaseResponse
}
Click to show internal directories.
Click to hide internal directories.