package
0.0.0-20241008175045-7832c06f5f00
Repository: https://github.com/kevineaton/simple-auth.git
Documentation: pkg.go.dev
# Functions
GetHealthRoute sees if the service is healthy.
GetStatusRoute sees if the service is up.
Send standardizes the return from the API.
SendError sends an error to the client.
Setup initializes the configuration for the server.
TestAPICall allows an easy way to test HTTP end points in unit testing.
UnmarshalTestMap helps to unmarshal the request for the testing calls.
ValidateJWTRoute validates the JWT for a user.
VerifyLoginRoute verifies the submitted username and password.
# Variables
Config is a global configuration object that consolidates the various settings.
# Structs
APIError represents the data key of an error for the API.
APIReturn represents a standard API return object.
Configuration is a global configuration object that consolidates the various settings.
JWTUser is a user decrypted from a JWT token.