Versions in this module Expand all Collapse all v0 v0.0.3 Jun 13, 2017 v0.0.2 Jun 13, 2017 Changes in this version + const KeycloakIDP + func IdentityFilterByID(identityID uuid.UUID) func(db *gorm.DB) *gorm.DB + func IdentityFilterByProfileURL(profileURL string) func(db *gorm.DB) *gorm.DB + func IdentityFilterByProviderType(providerType string) func(db *gorm.DB) *gorm.DB + func IdentityFilterByRegistrationCompleted(registrationCompleted bool) func(db *gorm.DB) *gorm.DB + func IdentityFilterByUserID(userID uuid.UUID) func(db *gorm.DB) *gorm.DB + func IdentityFilterByUsername(username string) func(db *gorm.DB) *gorm.DB + func IdentityWithUser() func(db *gorm.DB) *gorm.DB + func InitTenant(ctx context.Context, config tenantConfig) error + func NewInitTenant(config tenantConfig) func(context.Context) error + func NewUpdateTenant(config tenantConfig) func(context.Context) error + func UpdateTenant(ctx context.Context, config tenantConfig) error + func UserFilterByEmail(email string) func(db *gorm.DB) *gorm.DB + func UserFilterByID(userID uuid.UUID) func(db *gorm.DB) *gorm.DB + type GormIdentityRepository struct + func NewIdentityRepository(db *gorm.DB) *GormIdentityRepository + func (m *GormIdentityRepository) Create(ctx context.Context, model *Identity) error + func (m *GormIdentityRepository) Delete(ctx context.Context, id uuid.UUID) error + func (m *GormIdentityRepository) First(funcs ...func(*gorm.DB) *gorm.DB) (*Identity, error) + func (m *GormIdentityRepository) IsValid(ctx context.Context, id uuid.UUID) bool + func (m *GormIdentityRepository) List(ctx context.Context) ([]Identity, error) + func (m *GormIdentityRepository) Load(ctx context.Context, id uuid.UUID) (*Identity, error) + func (m *GormIdentityRepository) Lookup(ctx context.Context, username, profileURL, providerType string) (*Identity, error) + func (m *GormIdentityRepository) Query(funcs ...func(*gorm.DB) *gorm.DB) ([]Identity, error) + func (m *GormIdentityRepository) Save(ctx context.Context, model *Identity) error + func (m *GormIdentityRepository) Search(ctx context.Context, q string, start int, limit int) ([]Identity, int, error) + func (m *GormIdentityRepository) TableName() string + type GormUserRepository struct + func (m *GormUserRepository) Create(ctx context.Context, u *User) error + func (m *GormUserRepository) Delete(ctx context.Context, id uuid.UUID) error + func (m *GormUserRepository) List(ctx context.Context) ([]User, error) + func (m *GormUserRepository) Load(ctx context.Context, id uuid.UUID) (*User, error) + func (m *GormUserRepository) Query(funcs ...func(*gorm.DB) *gorm.DB) ([]User, error) + func (m *GormUserRepository) Save(ctx context.Context, model *User) error + func (m *GormUserRepository) TableName() string + type Identity struct + ID uuid.UUID + ProfileURL *string + ProviderType string + RegistrationCompleted bool + User User + UserID NullUUID + Username string + func (m Identity) GetETagData() []interface{} + func (m Identity) GetLastModified() time.Time + func (m Identity) TableName() string + type IdentityRepository interface + Create func(ctx context.Context, identity *Identity) error + Delete func(ctx context.Context, id uuid.UUID) error + IsValid func(context.Context, uuid.UUID) bool + List func(ctx context.Context) ([]Identity, error) + Load func(ctx context.Context, id uuid.UUID) (*Identity, error) + Lookup func(ctx context.Context, username, profileURL, providerType string) (*Identity, error) + Query func(funcs ...func(*gorm.DB) *gorm.DB) ([]Identity, error) + Save func(ctx context.Context, identity *Identity) error + Search func(ctx context.Context, q string, start int, limit int) ([]Identity, int, error) + type NullUUID struct + UUID uuid.UUID + Valid bool + func (u *NullUUID) Scan(src interface{}) error + func (u NullUUID) Value() (driver.Value, error) + type User struct + Bio string + Company string + ContextInformation workitem.Fields + Email string + FullName string + ID uuid.UUID + Identities []Identity + ImageURL string + URL string + func (m User) GetETagData() []interface{} + func (m User) GetLastModified() time.Time + func (m User) TableName() string + type UserRepository interface + Create func(ctx context.Context, u *User) error + Delete func(ctx context.Context, ID uuid.UUID) error + List func(ctx context.Context) ([]User, error) + Load func(ctx context.Context, ID uuid.UUID) (*User, error) + Query func(funcs ...func(*gorm.DB) *gorm.DB) ([]User, error) + Save func(ctx context.Context, u *User) error + func NewUserRepository(db *gorm.DB) UserRepository