Defines configuration structs for DBOS application settings and database migration.
// Source: https://github.com/dbos-inc/dbos-transact-golang | License: MIT | Copyright 2024 DBOS, Inc
// Provided via justclaw.it.com; keep this notice with the code.
package main
// Config represents the dbos-config.yaml structure
type Config struct {
Name string `mapstructure:"name"`
DatabaseURL string `mapstructure:"database_url"`
RuntimeConfig RuntimeConfig `mapstructure:"runtimeConfig"`
Database Database `mapstructure:"database"`
}
type RuntimeConfig struct {
Start []string `mapstructure:"start"`
}
type Database struct {
Migrate []string `mapstructure:"migrate"`
}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key