package
0.0.0-20241212045633-31cef34f41a2
Repository: https://github.com/gsom95/go-web-dev.git
Documentation: pkg.go.dev
# Functions
DefaultPostgresConfig returns a config for a local database.
Migrate migrates our database.
MigrateFS runs migrations with an embedded file system.
Open will open a SQL connection with the provided Postgres database.
# Constants
The minimum number of bytes to be used for each session token.
# Structs
PostgresConfig contains settings for Postgres connection.
Session is a one-to-one mapping of sessions table.
SessionService is a service for storing and fetching session info.
User struct represents data stored in the database.
UserService will interact with database.