Documentation ¶
Index ¶
- func API(db *sqlx.DB) http.Handler
- type GraphQL
- type Login
- type User
- func (u *User) GetUser(w http.ResponseWriter, r *http.Request)
- func (u *User) List(w http.ResponseWriter, r *http.Request)
- func (u *User) SignIn(w http.ResponseWriter, r *http.Request)
- func (u *User) SignOut(w http.ResponseWriter, r *http.Request)
- func (u *User) SignUp(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User represents the User API method handler set.
func (*User) GetUser ¶
func (u *User) GetUser(w http.ResponseWriter, r *http.Request)
GetUser returns the specified user from the system.
func (*User) List ¶
func (u *User) List(w http.ResponseWriter, r *http.Request)
List returns all the existing users in the system.
func (*User) SignIn ¶
func (u *User) SignIn(w http.ResponseWriter, r *http.Request)
SignIn authenticate a user. It expects a request using Basic Auth with a user's email and password. It responds with a JWT.
Click to show internal directories.
Click to hide internal directories.