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