Files
lnd/kvdb/postgres/config.go

14 lines
579 B
Go

package postgres
import "time"
// Config holds postgres configuration data.
//
//nolint:ll
type Config struct {
Dsn string `long:"dsn" description:"Database connection string."`
Timeout time.Duration `long:"timeout" description:"Database connection timeout. Set to zero to disable."`
MaxConnections int `long:"maxconnections" description:"The maximum number of open connections to the database. Set to zero for unlimited."`
WithGlobalLock bool `long:"withgloballock" description:"Use a global lock to ensure a single writer."`
}