Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(repo repository.PostmarkRepository) func(http.Handler) http.Handler
AuthMiddleware validates the PostmarkApp API token
func GetServerID ¶
GetServerID retrieves the server ID from the request context
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is a type for context keys
const ( // ServerIDKey is the context key for the server ID ServerIDKey ContextKey = "server_id" // ServerKey is the context key for the full server object ServerKey ContextKey = "server" )
Click to show internal directories.
Click to hide internal directories.