Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotFound = errors.New("User not found")
View Source
var RepoErr = errors.New("Email or password empty")
Functions ¶
Types ¶
type CreateUserRequest ¶
type CreateUserResponse ¶
type CreateUserResponse struct {
ID string `json:"id"`
}
type Endpoints ¶
func MakeEndpoints ¶
type GetUserRequest ¶
type GetUserRequest struct {
ID string `json:"id"`
}
type GetUserResponse ¶
type GetUserResponse struct {
Email string `json:"email"`
}
type Repository ¶
type Repository interface { CreateUser(ctx context.Context, userp User) error GetUser(ctx context.Context, id string) (string, error) }
func NewRepo ¶
func NewRepo(logger log.Logger) Repository
Source Files ¶
Click to show internal directories.
Click to hide internal directories.