Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeEmailSchema ¶
type ChangePasswordSchema ¶
type Config ¶
type Config struct { Use string `mapstructure:"use"` MongoDB MongoDBConfig `mapstructure:"mongodb"` FileDB FileDBConfig `mapstructure:"filedb"` }
type FileDBConfig ¶
type FileDBConfig struct {
Path string `mapstructure:"path"`
}
type MongoDBConfig ¶
type Repositories ¶
type Repositories struct { Users UsersRepository // contains filtered or unexported fields }
Repositories -.
type UsersRepository ¶
type UsersRepository interface { Create(ctx context.Context, user entity.UserModel) error FindByID(ctx context.Context, userID primitive.ObjectID) (entity.UserModel, error) FindByUsername(ctx context.Context, username string) (entity.UserModel, error) FindByEmail(ctx context.Context, email string) (entity.UserModel, error) FindByLogin(ctx context.Context, login string) (entity.UserModel, error) ChangeEmail(ctx context.Context, schema ChangeEmailSchema) error ChangePassword(ctx context.Context, schema ChangePasswordSchema) error }
UsersRepository is a store for users
Source Files ¶
Click to show internal directories.
Click to hide internal directories.