apigenutil

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MPL-2.0 Imports: 7 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 DecodeCookie added in v1.16.0

func DecodeCookie(errs *perr.List, g *Group, httpReqExpr, paramExpr *Statement, dec *genutil.TypeUnmarshaller, params []*apienc.ParameterEncoding)

DecodeCookie is like DecodeHeaders but for cookies.

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