Documentation ¶
Index ¶
- func MaskDBCred(connStr, dbType string) string
- func NewUserRegistryMySQL(datasource string, clientTLSConfig *tls.ClientTLSConfig, csp bccsp.BCCSP) (*sqlx.DB, error)
- func NewUserRegistryPostgres(datasource string, clientTLSConfig *tls.ClientTLSConfig) (*sqlx.DB, error)
- func NewUserRegistrySQLLite3(datasource string) (*sqlx.DB, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaskDBCred ¶ added in v1.0.5
MaskDBCred hides DB credentials in connection string
func NewUserRegistryMySQL ¶
func NewUserRegistryMySQL(datasource string, clientTLSConfig *tls.ClientTLSConfig, csp bccsp.BCCSP) (*sqlx.DB, error)
NewUserRegistryMySQL opens a connection to a postgres database
func NewUserRegistryPostgres ¶
func NewUserRegistryPostgres(datasource string, clientTLSConfig *tls.ClientTLSConfig) (*sqlx.DB, error)
NewUserRegistryPostgres opens a connecton to a postgres database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.