Versions in this module Expand all Collapse all v0 v0.1.0 Feb 17, 2026 Changes in this version + const SourceAdmin + const SourceConfig + const SourceGitHub + type GitHubOrgMapping struct + ID uint + Org string + Role string + type GitHubUserMapping struct + ID uint + Role string + Username string + type Session struct + CreatedAt time.Time + ExpiresAt time.Time + ID uint + Token string + UserID uint + type Store interface + CreateSession func(ctx context.Context, session *Session) error + CreateUser func(ctx context.Context, user *User) error + DeleteExpiredSessions func(ctx context.Context) error + DeleteGitHubOrgMapping func(ctx context.Context, id uint) error + DeleteGitHubUserMapping func(ctx context.Context, id uint) error + DeleteSession func(ctx context.Context, token string) error + DeleteUser func(ctx context.Context, id uint) error + GetSessionByToken func(ctx context.Context, token string) (*Session, error) + GetUserByID func(ctx context.Context, id uint) (*User, error) + GetUserByUsername func(ctx context.Context, username string) (*User, error) + ListGitHubOrgMappings func(ctx context.Context) ([]GitHubOrgMapping, error) + ListGitHubUserMappings func(ctx context.Context) ([]GitHubUserMapping, error) + ListUsers func(ctx context.Context) ([]User, error) + SeedGitHubMappings func(ctx context.Context, orgMappings map[string]string, ...) error + SeedUsers func(ctx context.Context, users []config.BasicAuthUser) error + Start func(ctx context.Context) error + Stop func() error + UpdateUser func(ctx context.Context, user *User) error + UpsertGitHubOrgMapping func(ctx context.Context, m *GitHubOrgMapping) error + UpsertGitHubUserMapping func(ctx context.Context, m *GitHubUserMapping) error + func NewStore(log logrus.FieldLogger, cfg *config.APIDatabaseConfig) Store + type User struct + CreatedAt time.Time + ID uint + PasswordHash string + Role string + Source string + UpdatedAt time.Time + Username string