Documentation ¶
Index ¶
- Variables
- func CreateAuthMiddleware(config k4ever.Config)
- func ProductRoutesPrivate(router *gin.RouterGroup, config k4ever.Config)
- func ProductRoutesPublic(router *gin.RouterGroup, config k4ever.Config)
- func PurchaseRoutes(router *gin.RouterGroup, config k4ever.Config)
- func SwaggerRoutesPublic(router *gin.RouterGroup, config k4ever.Config)
- func UserRoutesPrivate(router *gin.RouterGroup, config k4ever.Config)
- func VersionRoutesPublic(router *gin.RouterGroup, config k4ever.Config)
- type Balance
- type GenericError
- type SwaggerResponse
- type Token
- type TokenResponse
- type VersionInformation
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthMiddleware *jwt.GinJWTMiddleware
Functions ¶
func CreateAuthMiddleware ¶
func ProductRoutesPrivate ¶
func ProductRoutesPrivate(router *gin.RouterGroup, config k4ever.Config)
func ProductRoutesPublic ¶
func ProductRoutesPublic(router *gin.RouterGroup, config k4ever.Config)
func PurchaseRoutes ¶
func PurchaseRoutes(router *gin.RouterGroup, config k4ever.Config)
func SwaggerRoutesPublic ¶
func SwaggerRoutesPublic(router *gin.RouterGroup, config k4ever.Config)
func UserRoutesPrivate ¶
func UserRoutesPrivate(router *gin.RouterGroup, config k4ever.Config)
func VersionRoutesPublic ¶
func VersionRoutesPublic(router *gin.RouterGroup, config k4ever.Config)
Types ¶
type GenericError ¶
type GenericError struct { // The error message // in: body Body struct { // The error message // // Required: true // Example: Something went wrong Message string } }
A generic error message swagger:response
type SwaggerResponse ¶
type SwaggerResponse struct { // A swagger file // // in: body Swagger string }
Just a swagger file
swagger:model
type Token ¶
type Token struct { Code string `json:"code"` Expire string `json:"expire"` Token string `json:"token"` }
The returned token
swagger:model Token
type TokenResponse ¶
type TokenResponse struct { // in: body Token Token }
A token with an expiry date
swagger:response
Click to show internal directories.
Click to hide internal directories.