Documentation
¶
Index ¶
- Constants
- Variables
- func ImportBodyLimitMiddleware(maxBytes int64, next http.Handler) http.Handler
- func InitDbPool() *pgxpool.Pool
- func InitHandler(ctx context.Context, dbpool *pgxpool.Pool) http.Handler
- func RunMigrateScripts() (resultErr error)
- func StartApp(ctx context.Context, dbpool *pgxpool.Pool)
Constants ¶
View Source
const MaxImportBodyBytes int64 = 1 << 30
Variables ¶
View Source
var BasePath = "/directory"
View Source
var ConnectionString = cmp.Or(os.Getenv("DATABASE_URL"), "postgresql://postgres:directory@localhost:54322/directory")
View Source
var Host = cmp.Or(os.Getenv("HOST"), "localhost")
View Source
var MigrationsFolder = "file://migrations"
View Source
var Port = cmp.Or(os.Getenv("HTTP_PORT"), "8086")
Functions ¶
func InitDbPool ¶
func RunMigrateScripts ¶
func RunMigrateScripts() (resultErr error)
RunMigrateScripts applies the Directory migrations and closes the migration resources. Initialization, application, and cleanup failures are returned to the caller.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.