Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserRepositoryImpl ¶
NewUserRepositoryImpl creates new UserImpl
Types ¶
type RequestRegister ¶
type UserRepository ¶
type UserRepository interface { GetUserFromUsername(string) (*User, error) CreateAccount(*User) error }
UserRepository functions for user repository
type UserRepositoryImpl ¶
UserRepositoryImpl struct for db connection
var UserImpl *UserRepositoryImpl
func (*UserRepositoryImpl) CreateAccount ¶
func (r *UserRepositoryImpl) CreateAccount(userInput RequestRegister) (err error)
CreateAccount method for create an account with role operator
func (*UserRepositoryImpl) GetUserFromUsername ¶
func (r *UserRepositoryImpl) GetUserFromUsername(username string) (*User, error)
GetUserFromUsername method for retrieve user from bdd
Click to show internal directories.
Click to hide internal directories.