api

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ImportPath = "github.com/cssbruno/gowdk/addons/api"

ImportPath is the canonical Go import path for the API addon.

Variables

View Source
var ErrMultipleJSONValues = runtimeapi.ErrMultipleJSONValues
View Source
var ErrNilRequest = runtimeapi.ErrNilRequest
View Source
var ErrUnsupportedContentType = runtimeapi.ErrUnsupportedContentType
View Source
var NoContent = runtimeapi.NoContent
View Source
var QueryBool = runtimeapi.QueryBool
View Source
var QueryInt64 = runtimeapi.QueryInt64
View Source
var QueryString = runtimeapi.QueryString
View Source
var QueryStrings = runtimeapi.QueryStrings

Functions

func Addon

func Addon() gowdk.Addon

Addon enables generated API handlers.

func DecodeJSON added in v0.5.0

func DecodeJSON[T any](request *http.Request) (T, error)

Types

type ErrorBody added in v0.5.0

type ErrorBody = runtimeapi.ErrorBody

type ErrorInfo added in v0.5.0

type ErrorInfo = runtimeapi.ErrorInfo

type Handler

type Handler = runtimeapi.Handler

type Registry

type Registry = runtimeapi.Registry

Jump to

Keyboard shortcuts

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