Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cors ¶
type Cors struct { AllowedOrigins string `env:"CORS_ALLOWED_ORIGINS" envDefault:"*"` AllowedMethods string `env:"CORS_ALLOWED_METHODS" envDefault:"GET,POST,PUT,DELETE,OPTIONS"` AllowedHeaders string `env:"CORS_ALLOWED_HEADERS" envDefault:"*"` AllowCredentials bool `env:"CORS_ALLOW_CREDENTIALS" envDefault:"true"` }
type HttpServer ¶
type Postgres ¶
type Postgres struct { Host string `env:"POSTGRES_HOST" envDefault:"localhost"` Port string `env:"POSTGRES_PORT" envDefault:"5432"` Database string `env:"POSTGRES_DATABASE" envDefault:"postgres"` Username string `env:"POSTGRES_USERNAME" envDefault:"postgres"` Password string `env:"POSTGRES_PASSWORD" envDefault:"postgres"` Migrate bool `env:"POSTGRES_MIGRATE" envDefault:"true"` Seed bool `env:"POSTGRES_SEED" envDefault:"true"` }
Click to show internal directories.
Click to hide internal directories.