Documentation ¶
Index ¶
Constants ¶
View Source
const ( //KeyAppContext is key to get AppContext in middleware KeyAppContext key = iota //KeyAPIVersion is key to get set API version in context KeyAPIVersion key = iota )
Variables ¶
This section is empty.
Functions ¶
func APIVersionCtx ¶
APIVersionCtx adds api version to request Context
Types ¶
type APIVersion ¶
APIVersion struct to hold api version information
func NewAPIVersion ¶
func NewAPIVersion(version string, r *chi.Mux) *APIVersion
NewAPIVersion create new version path for APIs like /v1 or /v2 etc.
Click to show internal directories.
Click to hide internal directories.