Documentation ¶
Index ¶
- type PublicEnv
- type PublicRepository
- func (repo *PublicRepository) CreateUser(inputUser map[string]interface{}) (*models.User, error)
- func (repo *PublicRepository) CreateUserLogin(userId string, token string) error
- func (repo *PublicRepository) FindToken(token string) (models.UsersLogin, error)
- func (repo *PublicRepository) GenerateApiKey() string
- func (repo *PublicRepository) IncrementUserCount() error
- func (repo *PublicRepository) IsEmailUnique(email string) error
- func (repo *PublicRepository) ValidateEmailPasswordFromDB(email string, password string) (*models.User, error)
- type PublicRepositoryInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicEnv ¶
type PublicEnv struct { Logger goKitLog.Logger PublicRepo PublicRepositoryInterface Common lib.CommonService }
type PublicRepository ¶
func (*PublicRepository) CreateUser ¶
func (repo *PublicRepository) CreateUser(inputUser map[string]interface{}) (*models.User, error)
func (*PublicRepository) CreateUserLogin ¶
func (repo *PublicRepository) CreateUserLogin(userId string, token string) error
func (*PublicRepository) FindToken ¶
func (repo *PublicRepository) FindToken(token string) (models.UsersLogin, error)
func (*PublicRepository) GenerateApiKey ¶
func (repo *PublicRepository) GenerateApiKey() string
func (*PublicRepository) IncrementUserCount ¶
func (repo *PublicRepository) IncrementUserCount() error
func (*PublicRepository) IsEmailUnique ¶
func (repo *PublicRepository) IsEmailUnique(email string) error
func (*PublicRepository) ValidateEmailPasswordFromDB ¶
type PublicRepositoryInterface ¶
type PublicRepositoryInterface interface { IsEmailUnique(email string) error CreateUser(inputUser map[string]interface{}) (*models.User, error) CreateUserLogin(userId string, token string) error ValidateEmailPasswordFromDB(email string, password string) (*models.User, error) FindToken(token string) (models.UsersLogin, error) IncrementUserCount() error }
Click to show internal directories.
Click to hide internal directories.