Documentation ¶
Index ¶
- func CaptureResponseBody(c *gin.Context, passThrough bool) (*bytes.Buffer, gin.ResponseWriter)
- func Client(c *gin.Context, name string) ent.EntClient
- func DefaultOASErrorHandler(c *gin.Context, err error)
- func Transaction(c *gin.Context, name string) ent.EntTx
- func UpgradingHandler(checker func(*gin.Context) WSHandler) gin.HandlerFunc
- func WithEntClient(client ent.EntClient, name string) gin.HandlerFunc
- func WithOASValidation(spec *openapi3.T, validateResponse bool, errorHandler OASErrorHandler, ...) gin.HandlerFunc
- func WithTransaction(name string, opts *sql.TxOptions, controls ...TransactionControl) gin.HandlerFunc
- type OASErrorHandler
- type TransactionControl
- type WSHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureResponseBody ¶
func DefaultOASErrorHandler ¶
func UpgradingHandler ¶
func UpgradingHandler(checker func(*gin.Context) WSHandler) gin.HandlerFunc
func WithEntClient ¶
func WithEntClient(client ent.EntClient, name string) gin.HandlerFunc
func WithOASValidation ¶
func WithOASValidation( spec *openapi3.T, validateResponse bool, errorHandler OASErrorHandler, options *openapi3filter.Options, ) gin.HandlerFunc
func WithTransaction ¶
func WithTransaction( name string, opts *sql.TxOptions, controls ...TransactionControl, ) gin.HandlerFunc
Types ¶
type OASErrorHandler ¶
func AllowUndefinedRoutes ¶
func AllowUndefinedRoutes(handler OASErrorHandler) OASErrorHandler
Click to show internal directories.
Click to hide internal directories.