apigenutil

package
v1.14.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildErr

func BuildErr(code, msg string) *Statement

BuildErr returns an expression for returning an encore.dev/beta/errs.Error with the given code and message.

func BuildErrf

func BuildErrf(code, format string, args ...Code) *Statement

BuildErrf is like BuildErr but with a format string.

func DecodeHeaders

func DecodeHeaders(g *Group, httpReqExpr, paramExpr *Statement, dec *genutil.TypeUnmarshaller, params []*apienc.ParameterEncoding)

DecodeHeaders generates code for decoding HTTP headers from the http request given by httpReqExpr and storing the result into the params given by paramsExpr.

func DecodeQuery

func DecodeQuery(g *Group, httpReqExpr, paramExpr *Statement, dec *genutil.TypeUnmarshaller, params []*apienc.ParameterEncoding)

DecodeQuery is like DecodeHeaders but for query strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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