package
0.0.0-20241025142459-8190fe793afb
Repository: https://github.com/dd3v/cloud.snippets.ninja.git
Documentation: pkg.go.dev
# Functions
Database - ...
Endpoint - ...
MockAuthHeader returns an HTTP header that can pass the authentication check by MockAuthHandler.
MockAuthMiddleware creates a mock authentication middleware for testing purpose.
MockRouter creates a routing.Router for testing APIs.
MockRoutingContext creates a routing.Conext for testing handlers.
No description provided by the author
TruncateTable - ...
WithUser returns a context that contains the user identity from the given JWT.