repo

package
v0.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// User errors
	ErrDuplicateUser = fmt.Errorf("duplicate user")
)

Functions

This section is empty.

Types

type BannedTokenRepository

type BannedTokenRepository interface {
	CreateOrUpdateBannedToken(ctx context.Context, bannedToken *model.BannedTokenEntity) (*model.BannedTokenEntity, error)
	ExistsBannedTokenByJTI(ctx context.Context, jti string) (bool, error)
	DeleteExpiredBannedToken(ctx context.Context) error
}

type UserRepository

type UserRepository interface {
	CreateUser(ctx context.Context, user *model.UserEntity) (*model.UserEntity, error)
	UpdateUser(ctx context.Context, user *model.UserEntity) (*model.UserEntity, error)
	FindUserById(ctx context.Context, id uuid.UUID, rolePreload bool) (*model.UserEntity, error)
	FindUserByUsername(ctx context.Context, username string, rolePreload bool) (*model.UserEntity, error)
	FindUserByEmail(ctx context.Context, email string, rolePreload bool) (*model.UserEntity, error)
	FindUserByUsernameOrEmail(ctx context.Context, login string, rolePreload bool) (*model.UserEntity, error)
	ExistsUserById(ctx context.Context, id uuid.UUID) (bool, error)
	ExistsUserByUsername(ctx context.Context, username string) (bool, error)
	ExistsUserByEmail(ctx context.Context, email string) (bool, error)
	ExistsUserByUsernameOrEmail(ctx context.Context, username string, email string) (bool, error)
	DeleteExpiredUser(ctx context.Context) (*model.UserEntity, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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