Documentation
¶
Index ¶
- func InitDb() (*gorm.DB, error)
- type AuthorizationCodeRepository
- func (r *AuthorizationCodeRepository) CreateAuthorizationCode(code string, userId string, clientId string, scope string, redirectUri string) *gorm.DB
- func (r *AuthorizationCodeRepository) DeleteAuthorizationCode(code string) *gorm.DB
- func (r *AuthorizationCodeRepository) FindAuthorizationCode(code string) (*domain.AuthorizationCode, *gorm.DB)
- type ClientRepository
- type CodeChallengeRepository
- type ScopeRepository
- type TokenRepository
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthorizationCodeRepository ¶
type AuthorizationCodeRepository struct {
// contains filtered or unexported fields
}
func NewAuthorizationCodeRepositoty ¶
func NewAuthorizationCodeRepositoty(db *gorm.DB) *AuthorizationCodeRepository
func (*AuthorizationCodeRepository) CreateAuthorizationCode ¶
func (*AuthorizationCodeRepository) DeleteAuthorizationCode ¶
func (r *AuthorizationCodeRepository) DeleteAuthorizationCode(code string) *gorm.DB
func (*AuthorizationCodeRepository) FindAuthorizationCode ¶
func (r *AuthorizationCodeRepository) FindAuthorizationCode(code string) (*domain.AuthorizationCode, *gorm.DB)
type ClientRepository ¶
type ClientRepository struct { }
func NewClientRepositoty ¶
func NewClientRepositoty() *ClientRepository
func (*ClientRepository) FindClient ¶
func (r *ClientRepository) FindClient(cid string) (*domain.Client, error)
type CodeChallengeRepository ¶
type CodeChallengeRepository struct {
// contains filtered or unexported fields
}
func NewCodeChallengeRepositoty ¶
func NewCodeChallengeRepositoty(db *gorm.DB) *CodeChallengeRepository
func (*CodeChallengeRepository) CreateCodeChallenge ¶
func (r *CodeChallengeRepository) CreateCodeChallenge(code string, cc string, ccm domain.CodeChallengeMethodType) *gorm.DB
func (*CodeChallengeRepository) FindCodeChallenge ¶
func (r *CodeChallengeRepository) FindCodeChallenge(code string) (*domain.CodeChallenge, *gorm.DB)
type ScopeRepository ¶
type ScopeRepository struct { }
func NewScopeRepositoty ¶
func NewScopeRepositoty() *ScopeRepository
func (*ScopeRepository) FilterScope ¶
func (r *ScopeRepository) FilterScope(scope string) *[]domain.Scope
func (*ScopeRepository) JoinScopes ¶
func (r *ScopeRepository) JoinScopes(scopes *[]domain.Scope) string
type TokenRepository ¶
type TokenRepository struct {
// contains filtered or unexported fields
}
func NewTokenRepositoty ¶
func NewTokenRepositoty(db *gorm.DB) *TokenRepository
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepositoty ¶
func NewUserRepositoty(db *gorm.DB) *UserRepository
Click to show internal directories.
Click to hide internal directories.