Versions in this module Expand all Collapse all v0 v0.54.1 Mar 29, 2024 v0.54.0 Mar 28, 2024 v0.53.1 Mar 26, 2024 v0.53.0 Sep 4, 2023 v0.52.0 Sep 26, 2022 Changes in this version type DBConfiguration + ConnMaxIdleTime string + ConnMaxLifetime string + EncryptionKey *RollingKeyConfig + SignatureKey *RollingKeyConfig type DBConnectionFactory + DBConnMaxIdleTime string + DBConnMaxLifetime string v0.50.0 Dec 14, 2021 Changes in this version + func AdminDatabaseEncryptedEntities(db DBFunc, mapper *gorpmapper.Mapper) service.Handler + func AdminDatabaseEncryptedTuplesByEntity(db DBFunc, mapper *gorpmapper.Mapper) service.Handler + func AdminDatabaseMigrationUnlocked(db DBFunc) service.Handler + func AdminDatabaseRollEncryptedEntityByPrimaryKey(db DBFunc, mapper *gorpmapper.Mapper) service.Handler + func AdminDatabaseSignatureResume(db DBFunc, mapper *gorpmapper.Mapper) service.Handler + func AdminDatabaseSignatureRollEntityByPrimaryKey(db DBFunc, mapper *gorpmapper.Mapper) service.Handler + func AdminDatabaseSignatureTuplesBySigner(db DBFunc, mapper *gorpmapper.Mapper) service.Handler + func AdminDeleteDatabaseMigration(db DBFunc) service.Handler + func AdminGetDatabaseMigration(db DBFunc) service.Handler + func DBMap(m *gorpmapper.Mapper, db *sql.DB) *gorp.DbMap + type DBConfiguration struct + ConnectTimeout int + Host string + MaxConn int + Name string + Password string + Port int + Role string + SSLMode string + Schema string + Timeout int + User string + type DBConfigurationWithEncryption struct + ConnectTimeout int + EncryptionKey RollingKeyConfig + Host string + MaxConn int + Name string + Password string + Port int + Role string + SSLMode string + Schema string + SignatureKey RollingKeyConfig + Timeout int + User string + type DBConnectionFactory struct + DBConnectTimeout int + DBHost string + DBMaxConn int + DBName string + DBPassword string + DBPort int + DBRole string + DBSSLMode string + DBSchema string + DBTimeout int + DBUser string + Database *sql.DB + func Init(ctx context.Context, user, role, password, name, schema, host string, port int, ...) (*DBConnectionFactory, error) + func (f *DBConnectionFactory) Close() error + func (f *DBConnectionFactory) DB() *sql.DB + func (f *DBConnectionFactory) GetDBMap(m *gorpmapper.Mapper) func() *gorp.DbMap + func (f *DBConnectionFactory) NewListener(minReconnectInterval time.Duration, maxReconnectInterval time.Duration, ...) *pq.Listener + func (f *DBConnectionFactory) Set(d *sql.DB) + func (f *DBConnectionFactory) Status(ctx context.Context) sdk.MonitoringStatusLine + type DBFunc func() *gorp.DbMap + type KeyConfig struct + Key string + Timestamp int64 + type RollingKeyConfig struct + Cipher string + Keys []KeyConfig + func (k RollingKeyConfig) GetKeys(identifier string) []keyloader.KeyConfig + type TypeConverter struct + func (c *TypeConverter) FromDb(target interface{}) (gorp.CustomScanner, bool) + func (c *TypeConverter) ToDb(val interface{}) (interface{}, error)