Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRepository = errors.New("Unable to handle Database Request")
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
Middleware describes a service (as opposed to endpoint) middleware.
func InstrumentingMiddleware ¶
func InstrumentingMiddleware(accounts metrics.Counter) Middleware
InstrumentingMiddleware returns a service middleware that instruments the number of integers summed and characters concatenated over the lifetime of the service.
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
LoggingMiddleware takes a logger as a dependency and returns a service Middleware.
type Repository ¶
type Repository interface { CreateUser(ctx context.Context, user model.User) error DeleteUser(ctx context.Context, ID uuid.UUID) error AuthenticateUser(ctx context.Context, email string, password string) (bool, error) }
func NewRepository ¶
func NewRepository(db *gorm.DB, logger log.Logger) Repository
Click to show internal directories.
Click to hide internal directories.