api

package
v0.0.0-...-71ee054 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2020 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthMiddleware *jwt.GinJWTMiddleware

Functions

func CreateAuthMiddleware

func CreateAuthMiddleware(config k4ever.Config)

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 Balance

type Balance struct {
	Amount float64
}

swagger:model

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

type VersionInformation

type VersionInformation struct {
	Version   string `json:"version"`
	GitBranch string `json:"branch"`
	GitCommit string `json:"commit"`
	BuildTime string `json:"build_time"`
}

swagger:model VersionInformation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL