Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // ListenAddr is the address to bind the local server to. ListenAddr string `json:"listen"` // LogLevel is the log level for the application. LogLevel string `json:"log_level"` // DBConnStr is the connection string for the database. // // Begain with the database type, followed by the connection string. For example: // - sqlite3://:memory: creates an in-memory database. // - sqlite3:///path/to/database.db creates a database file at the specified path. // - postgres://user:password@localhost:5432/dbname connects to a PostgreSQL database. DBConnStr string `json:"db"` }
Config is a struct that holds the configuration for the application.
Click to show internal directories.
Click to hide internal directories.