api

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 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 NewJSONFieldDecoder = runtimeapi.NewJSONFieldDecoder
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
View Source
var RequireJSONContentType = runtimeapi.RequireJSONContentType
View Source
var ResultStatus = runtimeapi.ResultStatus

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 JSONFieldDecoder added in v0.12.0

type JSONFieldDecoder = runtimeapi.JSONFieldDecoder

type Registry

type Registry = runtimeapi.Registry

type StatusResult added in v0.12.0

type StatusResult = runtimeapi.StatusResult

Jump to

Keyboard shortcuts

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