Documentation ¶
Index ¶
- type ApiGatewayRequester
- func (self *ApiGatewayRequester) Accept() []byte
- func (self *ApiGatewayRequester) ContentType() []byte
- func (self *ApiGatewayRequester) MatchedPath() string
- func (self *ApiGatewayRequester) Method() []byte
- func (self *ApiGatewayRequester) Path() []byte
- func (self *ApiGatewayRequester) PathParam(param string) (string, bool)
- func (self *ApiGatewayRequester) PeekHeader(key string) []byte
- func (self *ApiGatewayRequester) QueryParam(param string) ([]byte, bool)
- func (self *ApiGatewayRequester) RequestBody() []byte
- func (self *ApiGatewayRequester) RequestId() string
- func (self *ApiGatewayRequester) ResponseContentType() string
- func (self *ApiGatewayRequester) ResponseHeaders() map[string]string
- func (self *ApiGatewayRequester) SetResponseContentType(contentType string)
- func (self *ApiGatewayRequester) SetResponseHeader(header string, value string)
- func (self *ApiGatewayRequester) VisitHeaders(f func(key []byte, value []byte))
- type HandlerAPIGateway
- type Lambda
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiGatewayRequester ¶
type ApiGatewayRequester struct {
// contains filtered or unexported fields
}
func NewApiGatewayRequester ¶
func NewApiGatewayRequester(matchedPath string, request *events.APIGatewayProxyRequest) *ApiGatewayRequester
func (*ApiGatewayRequester) Accept ¶
func (self *ApiGatewayRequester) Accept() []byte
func (*ApiGatewayRequester) ContentType ¶
func (self *ApiGatewayRequester) ContentType() []byte
func (*ApiGatewayRequester) MatchedPath ¶
func (self *ApiGatewayRequester) MatchedPath() string
func (*ApiGatewayRequester) Method ¶
func (self *ApiGatewayRequester) Method() []byte
func (*ApiGatewayRequester) Path ¶
func (self *ApiGatewayRequester) Path() []byte
func (*ApiGatewayRequester) PathParam ¶
func (self *ApiGatewayRequester) PathParam(param string) (string, bool)
func (*ApiGatewayRequester) PeekHeader ¶
func (self *ApiGatewayRequester) PeekHeader(key string) []byte
func (*ApiGatewayRequester) QueryParam ¶
func (self *ApiGatewayRequester) QueryParam(param string) ([]byte, bool)
func (*ApiGatewayRequester) RequestBody ¶
func (self *ApiGatewayRequester) RequestBody() []byte
func (*ApiGatewayRequester) RequestId ¶
func (self *ApiGatewayRequester) RequestId() string
func (*ApiGatewayRequester) ResponseContentType ¶
func (self *ApiGatewayRequester) ResponseContentType() string
func (*ApiGatewayRequester) ResponseHeaders ¶
func (self *ApiGatewayRequester) ResponseHeaders() map[string]string
func (*ApiGatewayRequester) SetResponseContentType ¶
func (self *ApiGatewayRequester) SetResponseContentType(contentType string)
func (*ApiGatewayRequester) SetResponseHeader ¶
func (self *ApiGatewayRequester) SetResponseHeader(header string, value string)
func (*ApiGatewayRequester) VisitHeaders ¶
func (self *ApiGatewayRequester) VisitHeaders(f func(key []byte, value []byte))
type HandlerAPIGateway ¶
type HandlerAPIGateway func(context.Context, events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
FIXME: Should be able to handle any event, not just API Gateway. HandlerAPIGateway is an API Gateway Proxy Request handler function
Click to show internal directories.
Click to hide internal directories.