Documentation ¶
Index ¶
- func DeleteConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func Init(config *viper.Viper, logger core.Logger, database *gorm.DB)
- func ListConnections(_ *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func PatchConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func PostConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
- type FeishuBlueprintPlan
- type FeishuPipelinePlan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConnection ¶
func DeleteConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary delete a feishu connection @Description Delete a feishu connection @Tags plugins/feishu @Success 200 {object} models.FeishuConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/feishu/connections/{connectionId} [DELETE]
func GetConnection ¶
func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary get feishu connection detail @Description Get feishu connection detail @Tags plugins/feishu @Success 200 {object} models.FeishuConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/feishu/connections/{connectionId} [GET]
func ListConnections ¶
func ListConnections(_ *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary get all feishu connections @Description Get all feishu connections @Tags plugins/feishu @Success 200 {object} models.FeishuConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/feishu/connections [GET]
func PatchConnection ¶
func PatchConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary patch feishu connection @Description Patch feishu connection @Tags plugins/feishu @Param body body models.FeishuConnection true "json body" @Success 200 {object} models.FeishuConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/feishu/connections/{connectionId} [PATCH]
func PostConnections ¶
func PostConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary create feishu connection @Description Create feishu connection @Tags plugins/feishu @Param body body models.FeishuConnection true "json body" @Success 200 {object} models.FeishuConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/feishu/connections [POST]
func TestConnection ¶
func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary test feishu connection @Description Test feishu Connection @Tags plugins/feishu @Param body body models.TestConnectionRequest true "json body" @Success 200 {object} shared.ApiBody "Success" @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/feishu/test [POST]
Types ¶
type FeishuBlueprintPlan ¶ added in v0.14.0
type FeishuBlueprintPlan [][]struct { Plugin string `json:"plugin"` Options struct{} `json:"options"` }
type FeishuPipelinePlan ¶ added in v0.14.0
type FeishuPipelinePlan [][]struct { Plugin string `json:"plugin"` Options struct{} `json:"options"` }