Documentation ¶
Index ¶
- func CreateAccesslog(c *gin.Context)
- func CreateArgument(c *gin.Context)
- func CreateGray(c *gin.Context)
- func CreateMock(c *gin.Context)
- func CreateRegion(c *gin.Context)
- func CreateRetry(c *gin.Context)
- func CreateTimeout(c *gin.Context)
- func CreateWeight(c *gin.Context)
- func DeleteAccesslog(c *gin.Context)
- func DeleteArgument(c *gin.Context)
- func DeleteGray(c *gin.Context)
- func DeleteMock(c *gin.Context)
- func DeleteRegion(c *gin.Context)
- func DeleteRetry(c *gin.Context)
- func DeleteTimeout(c *gin.Context)
- func DeleteWeight(c *gin.Context)
- func SearchAccesslog(c *gin.Context)
- func SearchArgument(c *gin.Context)
- func SearchGray(c *gin.Context)
- func SearchMock(c *gin.Context)
- func SearchRegion(c *gin.Context)
- func SearchRetry(c *gin.Context)
- func SearchTimeout(c *gin.Context)
- func SearchWeight(c *gin.Context)
- func UpdateAccesslog(c *gin.Context)
- func UpdateArgument(c *gin.Context)
- func UpdateGray(c *gin.Context)
- func UpdateMock(c *gin.Context)
- func UpdateRegion(c *gin.Context)
- func UpdateRetry(c *gin.Context)
- func UpdateTimeout(c *gin.Context)
- func UpdateWeight(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccesslog ¶
CreateAccesslog create rule @Summary create rule @Description create rule @Tags TrafficAccesslog @Accept json @Produce json @Param accesslog body model.Accesslog true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/accesslog [post]
func CreateArgument ¶
CreateArgument create rule @Summary create rule @Description create rule @Tags TrafficArgument @Accept json @Produce json @Param argument body model.Argument true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/argument [post]
func CreateGray ¶
CreateGray create rule @Summary create rule @Description create rule @Tags TrafficGray @Accept json @Produce json @Param gray body model.Gray true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/gray [post]
func CreateMock ¶
CreateMock create rule @Summary create rule @Description create rule @Tags TrafficMock @Accept json @Produce json @Param mock body model.Mock true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/mock [post]
func CreateRegion ¶
CreateRegion create rule @Summary create rule @Description create rule @Tags TrafficRegion @Accept json @Produce json @Param region body model.Region true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/region [post]
func CreateRetry ¶
CreateRetry create rule @Summary create rule @Description create rule @Tags TrafficRetry @Accept json @Produce json @Param retry body model.Retry true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/retry [post]
func CreateTimeout ¶
CreateTimeout create a new timeout rule @Summary Create a new timeout rule @Description Create a new timeout rule @Tags TrafficTimeout @Accept json @Produce json @Param timeout body model.Timeout true "timeout rule" @Success 200 {boolean} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/timeout [post]
func CreateWeight ¶
CreateWeight create rule @Summary create rule @Description create rule @Tags TrafficWeight @Accept json @Produce json @Param weight body model.Percentage true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/weight [post]
func DeleteAccesslog ¶
DeleteAccesslog delete rule @Summary delete rule @Description delete rule @Tags TrafficAccesslog @Accept json @Produce json @Param application query string true "application name" @Success 200 {bool} true @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/accesslog [delete]
func DeleteArgument ¶
DeleteArgument delete rule @Summary delete rule @Description delete rule @Tags TrafficArgument @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {bool} true @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/argument [delete]
func DeleteGray ¶
DeleteGray delete rule @Summary delete rule @Description delete rule @Tags TrafficGray @Accept json @Produce json @Param application query string true "application name" @Success 200 {bool} true @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/gray [delete]
func DeleteMock ¶
DeleteMock delete rule @Summary delete rule @Description delete rule @Tags TrafficMock @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/mock [delete]
func DeleteRegion ¶
DeleteRegion delete rule @Summary delete rule @Description delete rule @Tags TrafficRegion @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/region [delete]
func DeleteRetry ¶
DeleteRetry delete rule @Summary delete rule @Description delete rule @Tags TrafficRetry @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {bool} true @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/retry [delete]
func DeleteTimeout ¶
DeleteTimeout delete a new timeout rule @Summary delete a new timeout rule @Description delete a new timeout rule @Tags TrafficTimeout @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {boolean} true @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/timeout [delete]
func DeleteWeight ¶
DeleteWeight delete rule @Summary delete rule @Description delete rule @Tags TrafficWeight @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {bool} true @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/weight [delete]
func SearchAccesslog ¶
SearchAccesslog get rule list @Summary get rule list @Description get rule list @Tags TrafficAccesslog @Accept json @Produce json @Param application query string true "application name" @Success 200 {object} []model.Accesslog @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/accesslog [get]
func SearchArgument ¶
SearchArgument get rule list @Summary get rule list @Description get rule list @Tags TrafficArgument @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {object} []model.Argument @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/argument [get]
func SearchGray ¶
SearchGray get rule list @Summary get rule list @Description get rule list @Tags TrafficGray @Accept json @Produce json @Param application query string true "application name" @Success 200 {object} []model.Gray @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/gray [get]
func SearchMock ¶
SearchMock get rule list @Summary get rule list @Description get rule list @Tags TrafficMock @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {object} []model.Mock @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/mock [get]
func SearchRegion ¶
SearchRegion get rule list @Summary get rule list @Description get rule list @Tags TrafficRegion @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {object} []model.Region @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/region [get]
func SearchRetry ¶
SearchRetry get rule list @Summary get rule list @Description get rule list @Tags TrafficRetry @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {object} []model.Retry @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/retry [get]
func SearchTimeout ¶
SearchTimeout get timeout rule list @Summary get timeout rule list @Description get timeout rule list @Tags TrafficTimeout @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {object} []model.Timeout @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/timeout [get]
func SearchWeight ¶
SearchWeight get rule list @Summary get rule list @Description get rule list @Tags TrafficWeight @Accept json @Produce json @Param service query string true "service name" @Param version query string true "service version" @Param group query string true "service group" @Success 200 {object} []model.Weight @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/weight [get]
func UpdateAccesslog ¶
UpdateAccesslog create rule @Summary create rule @Description create rule @Tags TrafficAccesslog @Accept json @Produce json @Param accesslog body model.Accesslog true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/accesslog [put]
func UpdateArgument ¶
UpdateArgument update rule @Summary update rule @Description update rule @Tags TrafficArgument @Accept json @Produce json @Param argument body model.Argument true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/argument [put]
func UpdateGray ¶
UpdateGray update rule @Summary update rule @Description update rule @Tags TrafficGray @Accept json @Produce json @Param gray body model.Gray true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/gray [put]
func UpdateMock ¶
UpdateMock update rule @Summary update rule @Description update rule @Tags TrafficMock @Accept json @Produce json @Param mock body model.Mock true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/mock [put]
func UpdateRegion ¶
UpdateRegion update rule @Summary update rule @Description update rule @Tags TrafficRegion @Accept json @Produce json @Param region body model.Region true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/region [put]
func UpdateRetry ¶
UpdateRetry update rule @Summary update rule @Description update rule @Tags TrafficRetry @Accept json @Produce json @Param retry body model.Retry true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/retry [put]
func UpdateTimeout ¶
UpdateTimeout update a new timeout rule @Summary update a new timeout rule @Description update a new timeout rule @Tags TrafficTimeout @Accept json @Produce json @Param timeout body model.Timeout true "timeout rule" @Success 200 {boolean} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/timeout [put]
func UpdateWeight ¶
UpdateWeight update rule @Summary update rule @Description update rule @Tags TrafficWeight @Accept json @Produce json @Param weight body model.Percentage true "rule" @Success 200 {bool} true @Failure 400 {object} model.HTTPError @Failure 500 {object} model.HTTPError @Router /api/{env}/traffic/weight [put]
Types ¶
This section is empty.