package
0.0.0-20200128064054-09e84be0c593
Repository: https://github.com/samtech09/api-template.git
Documentation: pkg.go.dev

# Functions

APIVersionCtx adds api version to request Context.
AuthRequired check whether request contaisvalid JWT token.
NewAPIVersion create new version path for APIs like /v1 or /v2 etc.
NewResult object.
NewResultFilled creates a new instance of Result struct with given parameters.
NewServer Create new Server object.

# Constants

KeyAPIVersion is key to get set API version in context.
KeyAppContext is key to get AppContext in middleware.

# Structs

APIVersion struct to hold api version information.
Result is datatype that will be retured from all APIs.
Server is web server.