Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultStoragePrefix = "/supergiant/user/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequest ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(userService *Service, tokenService TokenIssuer) *Handler
func (*Handler) Authenticate ¶
func (h *Handler) Authenticate(w http.ResponseWriter, r *http.Request)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service contains business logic related to users
func NewService ¶
NewService is a constructor function for user.Service
func (*Service) Authenticate ¶
Authenticate checks if password stored in db is the same as in request
type TokenIssuer ¶
Click to show internal directories.
Click to hide internal directories.