Documentation ¶
Overview ¶
Package postgres contains the domain concept definitions needed to support Magistrala PostgreSQL database functionality.
It provides the abstraction of the PostgreSQL database service, which is used to configure, setup and connect to the PostgreSQL database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Host string `env:"HOST" envDefault:"localhost"` Port string `env:"PORT" envDefault:"5432"` User string `env:"USER" envDefault:"magistrala"` Pass string `env:"PASS" envDefault:"magistrala"` Name string `env:"NAME" envDefault:""` SSLMode string `env:"SSL_MODE" envDefault:"disable"` SSLCert string `env:"SSL_CERT" envDefault:""` SSLKey string `env:"SSL_KEY" envDefault:""` SSLRootCert string `env:"SSL_ROOT_CERT" envDefault:""` }
Click to show internal directories.
Click to hide internal directories.