common

package
v0.2.0-beta.202401072128 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.0 Imports: 11 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 ListPagingRequest

func ListPagingRequest(c *gin.Context) (nextToken string, limit int, 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