Documentation ¶
Index ¶
- func DecodeAPIGateway(r *events.APIGatewayProxyRequest) (*strsvcv1.Request, error)
- func DecodeHTTP(r *http.Request) (*strsvcv1.Request, error)
- func DecodeSQS(m events.SQSMessage) (*strsvcv1.Request, error)
- func EncodeAPIGateway(m *strsvcv1.Response) (*events.APIGatewayProxyResponse, error)
- func EncodeErrorAPIGateway(err error) *events.APIGatewayProxyResponse
- func EncodeErrorHTTP(err error, w http.ResponseWriter)
- func EncodeHTTP(m *strsvcv1.Response, w http.ResponseWriter)
- func NewEndpoint() box.Endpoint[*strsvcv1.Request, *strsvcv1.Response]
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAPIGateway ¶
func DecodeAPIGateway(r *events.APIGatewayProxyRequest) (*strsvcv1.Request, error)
func EncodeAPIGateway ¶
func EncodeAPIGateway(m *strsvcv1.Response) (*events.APIGatewayProxyResponse, error)
func EncodeErrorAPIGateway ¶
func EncodeErrorAPIGateway(err error) *events.APIGatewayProxyResponse
func EncodeErrorHTTP ¶
func EncodeErrorHTTP(err error, w http.ResponseWriter)
func EncodeHTTP ¶
func EncodeHTTP(m *strsvcv1.Response, w http.ResponseWriter)
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.