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(input *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 ApiMeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConnection ¶ added in v0.12.0
func DeleteConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary delete a ae connection @Description Delete a AE connection @Tags plugins/AE @Success 200 @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/ae/connections/{connectionId} [DELETE]
func GetConnection ¶
func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary get ae connection detail @Description Get AE connection detail @Tags plugins/AE @Success 200 @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/ae/connections/{connectionId} [GET]
func ListConnections ¶
func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary get all ae connections @Description Get all AE connections @Tags plugins/AE @Success 200 @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/ae/connections [GET]
func PatchConnection ¶
func PatchConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary patch ae connection @Description Patch AE connection @Tags plugins/AE @Param body body models.AeConnection true "json body" @Success 200 @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/ae/connections/{connectionId} [PATCH]
func PostConnections ¶ added in v0.12.0
func PostConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary create ae connection @Description Create AE connection @Tags plugins/AE @Param body body models.AeConnection true "json body" @Success 200 @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/ae/connections [POST]
func TestConnection ¶
func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, error)
@Summary test ae connection @Description Test AE Connection @Tags plugins/AE @Param body body models.TestConnectionRequest true "json body" @Success 200 @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internel Error" @Router /plugins/ae/test [POST]
Types ¶
type ApiMeResponse ¶
type ApiMeResponse struct {
Name string `json:"name"`
}