Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID string `json:"id,omitempty"` Email string `db:"email"` Password string `db:"password"` }
func (*User) ToUserResponse ¶
func (user *User) ToUserResponse() UserResponse
type UserRepository ¶
type UserRepositoryLocal ¶
type UserRepositoryLocal struct { }
func NewUserRepositoryLocal ¶
func NewUserRepositoryLocal() *UserRepositoryLocal
NewUserRepositoryLocal initializes a new instance of UserRepositoryLocal.
It takes a client parameter of type *sqlx.DB and returns an instance of UserRepository.
func (*UserRepositoryLocal) GetAllUsers ¶
func (repo *UserRepositoryLocal) GetAllUsers() ([]User, error)
GetAllUsers returns all users from the local user repository.
It does not take any parameters. It returns a slice of UserResponse and an error.
type UserRequest ¶
func (*UserRequest) ToUser ¶
func (request *UserRequest) ToUser() User
type UserResponse ¶
Click to show internal directories.
Click to hide internal directories.