Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
Types ¶
type LoggedInUser ¶
type UserLoginHandler ¶
type UserLoginHandler struct { Path string UserRepository UserRepository }
func (*UserLoginHandler) Login ¶
func (u *UserLoginHandler) Login(writer http.ResponseWriter, request *http.Request)
type UserNeo4jRepository ¶
func (*UserNeo4jRepository) FindByEmailAndPassword ¶
func (u *UserNeo4jRepository) FindByEmailAndPassword(email string, password string) (user *User, err error)
func (*UserNeo4jRepository) RegisterUser ¶
func (u *UserNeo4jRepository) RegisterUser(user *User) (err error)
type UserRegistration ¶
type UserRegistration struct {
User User `json:"user"`
}
type UserRegistrationHandler ¶
type UserRegistrationHandler struct { Path string UserRepository UserRepository }
func (*UserRegistrationHandler) Register ¶
func (u *UserRegistrationHandler) Register(writer http.ResponseWriter, request *http.Request)
Click to show internal directories.
Click to hide internal directories.