Documentation ¶
Index ¶
- Variables
- func DropMigrationsTable(dbMap *gorp.DbMap) error
- func GetPlannedMigrations(dbMap *gorp.DbMap) ([]*migrate.PlannedMigration, error)
- func MigrateMaxMigrations(dbMap *gorp.DbMap, max int) (int, error)
- func MigrateToLatest(dbMap *gorp.DbMap) (int, error)
- func NewClientIdentityRepo(dbm *gorp.DbMap) client.ClientIdentityRepo
- func NewClientIdentityRepoFromClients(dbm *gorp.DbMap, clients []oidc.ClientIdentity) (client.ClientIdentityRepo, error)
- func NewConnection(cfg Config) (*gorp.DbMap, error)
- func NewHealthChecker(dbm *gorp.DbMap) *healthChecker
- func NewPasswordInfoRepo(dbm *gorp.DbMap) user.PasswordInfoRepo
- func NewRefreshTokenRepo(dbm *gorp.DbMap) refresh.RefreshTokenRepo
- func NewUserRepo(dbm *gorp.DbMap) user.UserRepo
- func NewUserRepoFromUsers(dbm *gorp.DbMap, us []user.UserWithRemoteIdentities) (user.UserRepo, error)
- func TransactionFactory(conn *gorp.DbMap) repo.TransactionFactory
- type Config
- type ConnectorConfigRepo
- type GarbageCollector
- type PrivateKeySetRepo
- type SessionKeyRepo
- type SessionRepo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetPlannedMigrations ¶
func GetPlannedMigrations(dbMap *gorp.DbMap) ([]*migrate.PlannedMigration, error)
func NewClientIdentityRepo ¶
func NewClientIdentityRepo(dbm *gorp.DbMap) client.ClientIdentityRepo
func NewClientIdentityRepoFromClients ¶
func NewClientIdentityRepoFromClients(dbm *gorp.DbMap, clients []oidc.ClientIdentity) (client.ClientIdentityRepo, error)
func NewPasswordInfoRepo ¶
func NewPasswordInfoRepo(dbm *gorp.DbMap) user.PasswordInfoRepo
func NewRefreshTokenRepo ¶
func NewRefreshTokenRepo(dbm *gorp.DbMap) refresh.RefreshTokenRepo
func NewUserRepoFromUsers ¶
func TransactionFactory ¶
func TransactionFactory(conn *gorp.DbMap) repo.TransactionFactory
Types ¶
type Config ¶
type Config struct { // Connection string in the format: <driver>://<username>:<password>@<host>:<port>/<database> DSN string // The maximum number of open connections to the database. The default is 0 (unlimited). // For more details see: http://golang.org/pkg/database/sql/#DB.SetMaxOpenConns MaxOpenConnections int // The maximum number of connections in the idle connection pool. The default is 0 (unlimited). // For more details see: http://golang.org/pkg/database/sql/#DB.SetMaxIdleConns MaxIdleConnections int }
type ConnectorConfigRepo ¶
type ConnectorConfigRepo struct {
// contains filtered or unexported fields
}
func NewConnectorConfigRepo ¶
func NewConnectorConfigRepo(dbm *gorp.DbMap) *ConnectorConfigRepo
func (*ConnectorConfigRepo) All ¶
func (r *ConnectorConfigRepo) All() ([]connector.ConnectorConfig, error)
func (*ConnectorConfigRepo) Set ¶
func (r *ConnectorConfigRepo) Set(cfgs []connector.ConnectorConfig) error
type GarbageCollector ¶
type GarbageCollector struct {
// contains filtered or unexported fields
}
func NewGarbageCollector ¶
func NewGarbageCollector(dbm *gorp.DbMap, ival time.Duration) *GarbageCollector
func (*GarbageCollector) Run ¶
func (gc *GarbageCollector) Run() chan struct{}
type PrivateKeySetRepo ¶
type PrivateKeySetRepo struct {
// contains filtered or unexported fields
}
func NewPrivateKeySetRepo ¶
func NewPrivateKeySetRepo(dbm *gorp.DbMap, secrets ...[]byte) (*PrivateKeySetRepo, error)
func (*PrivateKeySetRepo) Get ¶
func (r *PrivateKeySetRepo) Get() (key.KeySet, error)
func (*PrivateKeySetRepo) Set ¶
func (r *PrivateKeySetRepo) Set(ks key.KeySet) error
type SessionKeyRepo ¶
type SessionKeyRepo struct {
// contains filtered or unexported fields
}
func NewSessionKeyRepo ¶
func NewSessionKeyRepo(dbm *gorp.DbMap) *SessionKeyRepo
func NewSessionKeyRepoWithClock ¶
func NewSessionKeyRepoWithClock(dbm *gorp.DbMap, clock clockwork.Clock) *SessionKeyRepo
func (*SessionKeyRepo) Pop ¶
func (r *SessionKeyRepo) Pop(key string) (string, error)
func (*SessionKeyRepo) Push ¶
func (r *SessionKeyRepo) Push(sk session.SessionKey, exp time.Duration) error
type SessionRepo ¶
type SessionRepo struct {
// contains filtered or unexported fields
}
func NewSessionRepo ¶
func NewSessionRepo(dbm *gorp.DbMap) *SessionRepo
func NewSessionRepoWithClock ¶
func NewSessionRepoWithClock(dbm *gorp.DbMap, clock clockwork.Clock) *SessionRepo
func (*SessionRepo) Create ¶
func (r *SessionRepo) Create(s session.Session) error
func (*SessionRepo) Update ¶
func (r *SessionRepo) Update(s session.Session) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.