Documentation
¶
Index ¶
- type AuthRepository
- func (a *AuthRepository) Create(ctx context.Context, auth *domain.Auth) error
- func (a *AuthRepository) Delete(ctx context.Context, id string) error
- func (a *AuthRepository) GetById(ctx context.Context, id string) (*domain.Auth, error)
- func (a *AuthRepository) GetByUsername(ctx context.Context, username string) (*domain.Auth, error)
- func (a *AuthRepository) GetByUsernameAndHpassword(ctx context.Context, username, hpassword string) (*domain.Auth, error)
- func (a *AuthRepository) GetStaticUserMap(ctx context.Context) map[string]*domain.Auth
- func (a *AuthRepository) List(ctx context.Context, opt *common.QueryOpts) (*common.ListResult[*domain.Auth], error)
- func (a *AuthRepository) Update(ctx context.Context, auth *domain.Auth) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepository ¶
type AuthRepository struct { StaticUsers *domain.StaticUserList UserIdMap map[string]*domain.Auth // contains filtered or unexported fields }
func NewAuthRepository ¶
func NewAuthRepository(dialector gorm.Dialector) *AuthRepository
func (*AuthRepository) Delete ¶
func (a *AuthRepository) Delete(ctx context.Context, id string) error
func (*AuthRepository) GetByUsername ¶
func (*AuthRepository) GetByUsernameAndHpassword ¶
func (*AuthRepository) GetStaticUserMap ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.