common

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIVersion is the current version of the API
	APIVersion0 = "v0"
	//APIVersion1      = "v1"
	APIVersionLatest = "latest"
)

Variables

This section is empty.

Functions

func APIPrefix

func APIPrefix() string

API Prefix is the API path prefix without a version parameter

func APIVersionValidator

func APIVersionValidator() validator.Func

func AbortWithError

func AbortWithError(c *gin.Context, err error)

func PathPrefixWithVersion

func PathPrefixWithVersion(version string) string

PathPrefixWithVersion is the API path prefix for the requested version

func ValidateAPIVersion

func ValidateAPIVersion(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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