Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Port string `envconfig:"API_PORT" default:"3001"` ShutdownTimeout time.Duration `envconfig:"API_SHUTDOWN_TIMEOUT" default:"5s"` }
API defines api configuration
type Config ¶
type Config struct { AppName string `envconfig:"APP_NAME" default:"mybank-acc"` API GRPC Swagger Postgres }
Config defines the service configuration
type GRPC ¶
type Postgres ¶
type Postgres struct { User string `envconfig:"DATABASE_USER" default:"postgres"` Password string `envconfig:"DATABASE_PASSWORD" default:"postgres"` Host string `envconfig:"DATABASE_HOST" default:"localhost"` Port string `envconfig:"DATABASE_PORT" default:"5434"` DBName string `envconfig:"DATABASE_NAME" default:"mybankacc"` SSLMode string `envconfig:"DATABASE_SSLMODE" default:"sslmode=disable"` }
Postgres defines postgres configuration
Click to show internal directories.
Click to hide internal directories.