Documentation ¶
Index ¶
- func BuildErr(code, msg string) *Statement
- func BuildErrf(code, format string, args ...Code) *Statement
- func DecodeCookie(errs *perr.List, g *Group, httpReqExpr, paramExpr *Statement, ...)
- func DecodeHeaders(g *Group, httpReqExpr, paramExpr *Statement, dec *genutil.TypeUnmarshaller, ...)
- func DecodeQuery(g *Group, httpReqExpr, paramExpr *Statement, dec *genutil.TypeUnmarshaller, ...)
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.
Click to show internal directories.
Click to hide internal directories.