repo

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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) Create

func (a *AuthRepository) Create(ctx context.Context, auth *domain.Auth) error

func (*AuthRepository) Delete

func (a *AuthRepository) Delete(ctx context.Context, id string) error

func (*AuthRepository) GetById

func (a *AuthRepository) GetById(ctx context.Context, id string) (*domain.Auth, error)

func (*AuthRepository) GetByUsername

func (a *AuthRepository) GetByUsername(ctx context.Context, username string) (*domain.Auth, error)

func (*AuthRepository) GetByUsernameAndHpassword

func (a *AuthRepository) GetByUsernameAndHpassword(ctx context.Context, username, hpassword string) (*domain.Auth, error)

func (*AuthRepository) GetStaticUserMap added in v0.1.2

func (a *AuthRepository) GetStaticUserMap(ctx context.Context) map[string]*domain.Auth

func (*AuthRepository) List added in v0.1.29

func (*AuthRepository) Update

func (a *AuthRepository) Update(ctx context.Context, auth *domain.Auth) error

Jump to

Keyboard shortcuts

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