Documentation ¶
Index ¶
- func DeleteConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func GetConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func Init(config *viper.Viper, logger core.Logger, database *gorm.DB)
- func ListConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func PatchConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func PostConnections(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.Error)
- func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, errors.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, errors.Error)
@Summary delete a ae connection @Description Delete a AE connection @Tags plugins/ae @Success 200 {object} models.AeConnection "Success" @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, errors.Error)
@Summary get ae connection detail @Description Get AE connection detail @Tags plugins/ae @Success 200 {object} models.AeConnection "Success" @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, errors.Error)
@Summary get all ae connections @Description Get all AE connections @Tags plugins/ae @Success 200 {object} []models.AeConnection "Success" @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, errors.Error)
@Summary patch ae connection @Description Patch AE connection @Tags plugins/ae @Param body body models.AeConnection true "json body" @Success 200 {object} models.AeConnection "Success" @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, errors.Error)
@Summary create ae connection @Description Create AE connection @Tags plugins/ae @Param body body models.AeConnection true "json body" @Success 200 {object} models.AeConnection "Success" @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, errors.Error)
@Summary test ae connection @Description Test AE Connection @Tags plugins/ae @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/ae/test [POST]
Types ¶
type ApiMeResponse ¶
type ApiMeResponse struct {
Name string `json:"name"`
}