Versions in this module Expand all Collapse all v1 v1.0.0 May 22, 2026 Changes in this version + func ClientError(status int, message string) (events.APIGatewayProxyResponse, error) + func GenerateShortURLID(length int) string + func IsValidLink(u string) bool + func ServerError(err error) (events.APIGatewayProxyResponse, error) + type DeleteFunctionHandler struct + func NewDeleteFunctionHandler(l *services.LinkService) *DeleteFunctionHandler + func (s *DeleteFunctionHandler) Delete(ctx context.Context, req events.APIGatewayV2HTTPRequest) (events.APIGatewayProxyResponse, error) + type GenerateLinkFunctionHandler struct + func NewGenerateLinkFunctionHandler(l *services.LinkService) *GenerateLinkFunctionHandler + func (h *GenerateLinkFunctionHandler) CreateShortLink(ctx context.Context, req events.APIGatewayV2HTTPRequest) (events.APIGatewayProxyResponse, error) + type RedirectFunctionHandler struct + func NewRedirectFunctionHandler(l *services.LinkService) *RedirectFunctionHandler + func (h *RedirectFunctionHandler) Redirect(ctx context.Context, req events.APIGatewayV2HTTPRequest) (events.APIGatewayProxyResponse, error) + type RequestBody struct + Long string