package
0.0.0-20240703173541-9dba125601d1
Repository: https://github.com/denpeshkov/greenlight.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NewMovieService returns a new instance of [MovieService].
NewUserService returns a new instance of [UserService].
WithConnectionTimeout sets the timeout for establishing the connection.
WithMaxIdleConns sets the maximum number of connections in the idle connection pool.
WithConnMaxIdleTime sets the maximum amount of time a connection may be idle.
WithMaxOpenConns sets the maximum number of open connections to the database.
WithQueryTimeout sets the query execution timeout.

# Constants

No description provided by the author
No description provided by the author

# Structs

DB represents the database connection.
MovieService represents a service for managing movies backed by PostgreSQL.
UserService represents a service for managing users backed by PostgreSQL.

# Type aliases

MigrationType is type of migration to run: UP or DOWN.
Option represents a configuration option for PostgreSQL*options.