Versions in this module Expand all Collapse all v0 v0.1.0 Nov 1, 2022 Changes in this version + func GetSourceEvent(ctx context.Context) any + func NewAPIGatewayV1Handler(delegate AdapterFunc) ... + func NewAPIGatewayV2Handler(delegate AdapterFunc) ... + func NewBase64WriteCloser(field *string) io.WriteCloser + func NewFunctionURLHandler(delegate AdapterFunc) ... + func WithSourceEvent(ctx context.Context, event any) context.Context + type APIGwV1RequestAdapter events.APIGatewayProxyRequest + func (adapter APIGwV1RequestAdapter) ConsumeHeader(consumer HeaderConsumer) + func (adapter APIGwV1RequestAdapter) ConsumeTrailer(consumer HeaderConsumer) + func (adapter APIGwV1RequestAdapter) GetBody() io.ReadCloser + func (adapter APIGwV1RequestAdapter) GetMethod() string + func (adapter APIGwV1RequestAdapter) GetProto() string + func (adapter APIGwV1RequestAdapter) GetRemoteAddr() string + func (adapter APIGwV1RequestAdapter) GetURI() string + type APIGwV1ResponseAdapter events.APIGatewayProxyResponse + func (adapter *APIGwV1ResponseAdapter) AddHeader(k string, v string) + func (adapter *APIGwV1ResponseAdapter) AddTrailer(k string, v string) + func (adapter *APIGwV1ResponseAdapter) GetBodyWriter() io.WriteCloser + func (adapter *APIGwV1ResponseAdapter) SetHeader(k string, v []string) + func (adapter *APIGwV1ResponseAdapter) SetStatusCode(status int) + func (adapter *APIGwV1ResponseAdapter) SetTrailer(k string, v []string) + type APIGwV2RequestAdapter events.APIGatewayV2HTTPRequest + func (adapter APIGwV2RequestAdapter) ConsumeHeader(consumer HeaderConsumer) + func (adapter APIGwV2RequestAdapter) ConsumeTrailer(consumer HeaderConsumer) + func (adapter APIGwV2RequestAdapter) GetBody() io.ReadCloser + func (adapter APIGwV2RequestAdapter) GetMethod() string + func (adapter APIGwV2RequestAdapter) GetProto() string + func (adapter APIGwV2RequestAdapter) GetRemoteAddr() string + func (adapter APIGwV2RequestAdapter) GetURI() string + type APIGwV2ResponseAdapter events.APIGatewayV2HTTPResponse + func (adapter *APIGwV2ResponseAdapter) AddHeader(k string, v string) + func (adapter *APIGwV2ResponseAdapter) AddTrailer(k string, v string) + func (adapter *APIGwV2ResponseAdapter) GetBodyWriter() io.WriteCloser + func (adapter *APIGwV2ResponseAdapter) SetHeader(k string, v []string) + func (adapter *APIGwV2ResponseAdapter) SetStatusCode(status int) + func (adapter *APIGwV2ResponseAdapter) SetTrailer(k string, v []string) + type AdapterFunc func(ctx context.Context, req RequestAdapter, res ResponseAdapter) error + func NewVanillaAdapter(delegate http.Handler) AdapterFunc + type FunctionURLRequestAdapter events.LambdaFunctionURLRequest + func (adapter FunctionURLRequestAdapter) ConsumeHeader(consumer HeaderConsumer) + func (adapter FunctionURLRequestAdapter) ConsumeTrailer(consumer HeaderConsumer) + func (adapter FunctionURLRequestAdapter) GetBody() io.ReadCloser + func (adapter FunctionURLRequestAdapter) GetMethod() string + func (adapter FunctionURLRequestAdapter) GetProto() string + func (adapter FunctionURLRequestAdapter) GetRemoteAddr() string + func (adapter FunctionURLRequestAdapter) GetURI() string + type FunctionURLResponseAdapter events.LambdaFunctionURLResponse + func (adapter *FunctionURLResponseAdapter) AddHeader(k string, v string) + func (adapter *FunctionURLResponseAdapter) AddTrailer(k string, v string) + func (adapter *FunctionURLResponseAdapter) GetBodyWriter() io.WriteCloser + func (adapter *FunctionURLResponseAdapter) SetHeader(k string, v []string) + func (adapter *FunctionURLResponseAdapter) SetStatusCode(status int) + func (adapter *FunctionURLResponseAdapter) SetTrailer(k string, v []string) + type HeaderConsumer interface + Add func(string, string) + Set func(string, string) + type RequestAdapter interface + ConsumeHeader func(consumer HeaderConsumer) + ConsumeTrailer func(consumer HeaderConsumer) + GetBody func() io.ReadCloser + GetMethod func() string + GetProto func() string + GetRemoteAddr func() string + GetURI func() string + type ResponseAdapter interface + AddHeader func(string, string) + AddTrailer func(string, string) + GetBodyWriter func() io.WriteCloser + SetHeader func(string, []string) + SetStatusCode func(int) + SetTrailer func(string, []string)