Documentation ¶
Index ¶
- type APIGatewayV2Handler
- func (l *APIGatewayV2Handler) AllHandler(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
- func (l *APIGatewayV2Handler) DeleteHandler(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
- func (l *APIGatewayV2Handler) GetHandler(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
- func (l *APIGatewayV2Handler) PutHandler(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
- type BatchItemFailure
- type DynamoDBEventHandler
- type StreamsEventResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIGatewayV2Handler ¶
type APIGatewayV2Handler struct {
// contains filtered or unexported fields
}
func NewAPIGatewayV2Handler ¶
func NewAPIGatewayV2Handler(d *domain.Products) *APIGatewayV2Handler
func (*APIGatewayV2Handler) AllHandler ¶
func (l *APIGatewayV2Handler) AllHandler(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
func (*APIGatewayV2Handler) DeleteHandler ¶
func (l *APIGatewayV2Handler) DeleteHandler(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
func (*APIGatewayV2Handler) GetHandler ¶
func (l *APIGatewayV2Handler) GetHandler(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
func (*APIGatewayV2Handler) PutHandler ¶
func (l *APIGatewayV2Handler) PutHandler(ctx context.Context, event events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
type BatchItemFailure ¶
type BatchItemFailure struct {
ItemIdentifier string `json:"itemIdentifier"`
}
type DynamoDBEventHandler ¶
type DynamoDBEventHandler struct {
// contains filtered or unexported fields
}
func NewDynamoDBEventHandler ¶
func NewDynamoDBEventHandler(p *domain.ProductsStream) *DynamoDBEventHandler
func (*DynamoDBEventHandler) StreamHandler ¶
func (d *DynamoDBEventHandler) StreamHandler(ctx context.Context, event events.DynamoDBEvent) (StreamsEventResponse, error)
type StreamsEventResponse ¶
type StreamsEventResponse struct {
BatchItemFailures []BatchItemFailure `json:"batchItemFailures"`
}
Click to show internal directories.
Click to hide internal directories.