Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppCfg ¶
type AppCfg struct { Introspection struct { Enable bool `envconfig:"default=true"` } Elastic struct { DSN string `envconfig:"default=http://elastic:9200"` } Centrifugo struct { DSN string `envconfig:"default=http://centrifugo:8100"` } Mongo struct { DSN string `envconfig:"default=mongodb://mongodb:27017"` ImageDB string `envconfig:"default=images"` InnovationsDB string `envconfig:"default=innovations"` ChatDB string `envconfig:"default=chat"` } Database struct { DSN string `envconfig:"default=postgres://postgres:secret@postgres:5432/rosseti"` Params string `envconfig:"default=connect_timeout=10&sslmode=disable"` MaxIdleConnections int `envconfig:"default=5"` MaxOpenedConnections int `envconfig:"default=10"` MaxConnectionLifetime string `envconfig:"default=10s"` } Pg struct { Migrate struct { Dir string `envconfig:"default=/internal/db/migrations/pg"` Action string `envconfig:"default=up"` } } PublicHTTP struct { Listen string `envconfig:"default=0.0.0.0:9000"` } PrivateHTTP struct { Listen string `envconfig:"default=0.0.0.0:9100"` } Logger struct { Level string `envconfig:"default=INFO"` SuperVerbosive bool `envconfig:"default=false"` NoColoredOutput bool `envconfig:"default=true"` } }
Click to show internal directories.
Click to hide internal directories.