Documentation ¶
Overview ¶
Package postgres contains Key repository implementations using PostgreSQL as the underlying database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect creates a connection to the PostgreSQL instance and applies any unapplied database migrations. A non-nil error is returned to indicate failure.
func New ¶
func New(db Database) authn.KeyRepository
New instantiates a PostgreSQL implementation of key repository.
Types ¶
type Config ¶
type Config struct { Host string Port string User string Pass string Name string SSLMode string SSLCert string SSLKey string SSLRootCert string }
Config defines the options that are used when connecting to a PostgreSQL instance
Click to show internal directories.
Click to hide internal directories.