repository

package
v0.0.0-...-634509b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb() (*gorm.DB, error)

Types

type AuthorizationCodeRepository

type AuthorizationCodeRepository struct {
	// contains filtered or unexported fields
}

func NewAuthorizationCodeRepositoty

func NewAuthorizationCodeRepositoty(db *gorm.DB) *AuthorizationCodeRepository

func (*AuthorizationCodeRepository) CreateAuthorizationCode

func (r *AuthorizationCodeRepository) CreateAuthorizationCode(code string, userId string, clientId string, scope string, redirectUri string) *gorm.DB

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

func (*TokenRepository) CreateToken

func (r *TokenRepository) CreateToken(token string, userId string, clientId string, scope string, expiredIn time.Duration) *gorm.DB

type UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

func NewUserRepositoty

func NewUserRepositoty(db *gorm.DB) *UserRepository

func (*UserRepository) FindUser

func (r *UserRepository) FindUser(email string, password string) (*domain.User, *gorm.DB)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL