Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorTestHandler ¶
type ErrorTestHandler struct{}
ErrorTestHandler 错误测试处理器
func NewErrorTestHandler ¶
func NewErrorTestHandler() *ErrorTestHandler
NewErrorTestHandler 创建错误测试处理器
func (*ErrorTestHandler) TestApiError ¶
func (h *ErrorTestHandler) TestApiError(c *gin.Context)
TestApiError 测试 API 异常 GET /test/error/api
func (*ErrorTestHandler) TestClientError ¶
func (h *ErrorTestHandler) TestClientError(c *gin.Context)
TestClientError 测试客户端请求异常 GET /test/error/client
func (*ErrorTestHandler) TestSqlError ¶
func (h *ErrorTestHandler) TestSqlError(c *gin.Context)
TestSqlError 测试 SQL 异常 GET /test/error/sql
func (*ErrorTestHandler) TestValidationError ¶
func (h *ErrorTestHandler) TestValidationError(c *gin.Context)
TestValidationError 测试参数验证异常 GET /test/error/validation
Click to show internal directories.
Click to hide internal directories.