Documentation ¶
Index ¶
- Constants
- func APIHeaders(srv *mattrax.Server) mux.MiddlewareFunc
- func AuthClaimsFromContext(ctx context.Context) *authentication.AuthClaims
- func DBTxFromContext(ctx context.Context) *sql.Tx
- func FrontendHeaders() mux.MiddlewareFunc
- func GetPaginationParams(v url.Values) (int32, int32, error)
- func Headers() mux.MiddlewareFunc
- func Logging() mux.MiddlewareFunc
- func RequireAuthentication(srv *mattrax.Server) mux.MiddlewareFunc
- func ZipkinExtended(next http.Handler) http.Handler
Constants ¶
View Source
const MaxBodySize = 1000000000
View Source
const MaxJSONBodySize = 2097152
Variables ¶
This section is empty.
Functions ¶
func APIHeaders ¶
func APIHeaders(srv *mattrax.Server) mux.MiddlewareFunc
func AuthClaimsFromContext ¶
func AuthClaimsFromContext(ctx context.Context) *authentication.AuthClaims
func FrontendHeaders ¶
func FrontendHeaders() mux.MiddlewareFunc
FrontendHeaders sets the headers for the frontend UI routes
func RequireAuthentication ¶
func RequireAuthentication(srv *mattrax.Server) mux.MiddlewareFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.