credentials

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCredentialsNotFoundByUsername = errors.New("credentials by username not found in database")
)
View Source
var (
	ErrSavingCredentials = errors.New("error while saving credentials")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	CheckDuplicatesExists(ctx context.Context, username string) (bool, error)
	Save(context.Context, *domain.Credentials) error
	FindByUsername(ctx context.Context, username string) (*domain.Credentials, error)
}

func New

func New(db *gorm.DB, redisClient *redis.Client, cfg *config.Config, log *slog.Logger) Repository

Jump to

Keyboard shortcuts

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