Documentation ¶
Overview ¶
Package middleware provides a set of common middleware for use with web application.
It provides the following middleware: gin middleware, gqlgen middleware
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTenantID ¶
RegisterTenantID register middleware to get tenant id from request header
func RegisterTokenSigner ¶
RegisterTokenSigner register middleware to sign request
func SimplePagination ¶
func SimplePagination() graphql.ResponseMiddleware
SimplePagination is a middleware that parses the query string for the simple (similar limit,offset) pagination use it like:
gqlsrv.AroundResponses(gqlx.SimplePagination())
func TenantIDMiddleware ¶
func TenantIDMiddleware(cfg *conf.Configuration) gin.HandlerFunc
TenantIDMiddleware returns middleware to get tenant id from http request
Types ¶
Click to show internal directories.
Click to hide internal directories.