Documentation ¶
Index ¶
- type Handler
- func (h Handler) CreateUser()
- func (h Handler) DeleteUser(id int)
- func (h Handler) GetUser()
- func (h Handler) GetUsers()
- func (h *Handler) Handle(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
- func (h Handler) ServeHTTP(rw http.ResponseWriter, r *http.Request)
- func (h Handler) UpdateUser()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
Handler - Base handler struct with the handle method which will be invoked
func (Handler) GetUser ¶
func (h Handler) GetUser()
GetUser - retrieve user from db with specified id
func (*Handler) Handle ¶
func (h *Handler) Handle(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
Handle - Handle method to be invoked by lambda
Click to show internal directories.
Click to hide internal directories.