package
0.0.0-20240822173245-257763d86c02
Repository: https://github.com/lookeme/short-url.git
Documentation: pkg.go.dev
# Functions
New creates a new instance of Postgres by accepting a context, logger, and storage configuration.
NewShortenRepository initializes a new instance of.
NewStorage creates a new instance of Storage by accepting an implementation of UserRepository and ShortenRepository.
NewUserRepository creates a new instance of UserRepository with the given Postgres instance.
StartMigration starts the migration process for a PostgreSQL database using the provided connection pool.
# Structs
Postgres is a type representing a connection pool to a PostgreSQL database.
ShortenRepository represents a repository for storing.
Implementation omitted for brevity.
UserRepository represents a repository for managing user data.