package
0.0.0-20250114092647-a3d21043d0f0
Repository: https://github.com/golangtroshin/shorturl.git
Documentation: pkg.go.dev
# Functions
APIDeleteUrlsHandler returns an HTTP handler for deleting a batch of URLs for a user.
APIInternalGetStatsHandler returns an HTTP handler that provides statistics about stored URLs and users.
APIPostBatchHandler returns an HTTP handler for creating multiple shortened URLs in a batch.
APIShortenURL returns an HTTP handler for creating a shortened URL.
GetRequestHandler handles HTTP GET requests to retrieve the original URL corresponding to a given shortened URL ID.
GetURLsByUserHandler handles HTTP GET requests to retrieve all shortened URLs associated with the currently authenticated user.
DatabasePing handles HTTP GET requests to check the health of the database connection.
PostRequestHandler handles HTTP POST requests to shorten URLs.
# Constants
ContentTypeJSON defines the Content-Type for JSON responses.
ContentTypePlainText const for content type.