Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIndexCreation = errors.New("failed to create index")
)
View Source
var ( //ErrNotFound signals that a user could not be found ErrNotFound = errors.New("user not found") )
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger zerolog.Logger) Middleware
type UserStore ¶
type UserStore interface { Create(ctx context.Context, user *model.User) (string, error) FindByID(ctx context.Context, id string) (*model.User, error) FindByEMail(ctx context.Context, email string) (*model.User, error) HasUsersWithRole(ctx context.Context, role model.Role) (bool, error) Delete(ctx context.Context, id string) error // contains filtered or unexported methods }
UserStore is responsible for storing and fetching of users
Click to show internal directories.
Click to hide internal directories.