Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommentHandler ¶
type CommentHandler struct {
// contains filtered or unexported fields
}
CommentHandler handles blog comment operations
func NewCommentHandler ¶
func NewCommentHandler() (*CommentHandler, error)
NewCommentHandler creates a new comment handler
func (*CommentHandler) HandleRequest ¶
func (h *CommentHandler) HandleRequest(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
HandleRequest routes requests to appropriate handlers
type Cursor ¶
type Cursor struct {
LastPublishedAt time.Time `json:"p"`
LastID string `json:"i"`
Direction string `json:"d,omitempty"` // "next" or "prev"
}
Cursor represents pagination cursor data
func DecodeCursor ¶
DecodeCursor decodes a cursor string back to cursor data
type PostHandler ¶
type PostHandler struct {
// contains filtered or unexported fields
}
PostHandler handles blog post operations
func NewPostHandler ¶
func NewPostHandler() (*PostHandler, error)
NewPostHandler creates a new post handler
func (*PostHandler) HandleRequest ¶
func (h *PostHandler) HandleRequest(ctx context.Context, request events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
HandleRequest routes requests to appropriate handlers
Click to show internal directories.
Click to hide internal directories.