handler

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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