Documentation
¶
Index ¶
- func BuildErr(code, msg string) *Statement
- func BuildErrf(code, format string, args ...Code) *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 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.