Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateUser ¶
type JWTCustomClaims ¶
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct { Token string `json:"token"` User UserResponse `json:"user"` ClientIP string `json:"client_ip"` UserAgent string `json:"user_agent"` }
type Repository ¶
type Repository interface { CreateUser(context.Context, *UserRequest) (*UserResponse, error) GetUserByEmail(ctx context.Context, email string) (*sqlc.User, error) }
func NewRepository ¶
func NewRepository(q *sqlc.Queries) Repository
type Service ¶
type Service interface { CreateUser(context.Context, *UserRequest) (*UserResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) }
func NewService ¶
func NewService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.