traffic

package
v0.0.0-...-97dd610 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccesslog

func CreateAccesslog(c *gin.Context)

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

func CreateArgument(c *gin.Context)

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

func CreateGray(c *gin.Context)

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

func CreateMock(c *gin.Context)

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

func CreateRegion(c *gin.Context)

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

func CreateRetry(c *gin.Context)

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

func CreateTimeout(c *gin.Context)

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

func CreateWeight(c *gin.Context)

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

func DeleteAccesslog(c *gin.Context)

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

func DeleteArgument(c *gin.Context)

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

func DeleteGray(c *gin.Context)

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

func DeleteMock(c *gin.Context)

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

func DeleteRegion(c *gin.Context)

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

func DeleteRetry(c *gin.Context)

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

func DeleteTimeout(c *gin.Context)

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

func DeleteWeight(c *gin.Context)

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

func SearchAccesslog(c *gin.Context)

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

func SearchArgument(c *gin.Context)

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

func SearchGray(c *gin.Context)

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

func SearchMock(c *gin.Context)

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

func SearchRegion(c *gin.Context)

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

func SearchRetry(c *gin.Context)

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

func SearchTimeout(c *gin.Context)

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

func SearchWeight(c *gin.Context)

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

func UpdateAccesslog(c *gin.Context)

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

func UpdateArgument(c *gin.Context)

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

func UpdateGray(c *gin.Context)

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

func UpdateMock(c *gin.Context)

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

func UpdateRegion(c *gin.Context)

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

func UpdateRetry(c *gin.Context)

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

func UpdateTimeout(c *gin.Context)

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

func UpdateWeight(c *gin.Context)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL