Documentation
¶
Index ¶
- type API
- func (api *API) GetUserFromContext(req *http.Request) *models.User
- func (api *API) Quote(w http.ResponseWriter, req *http.Request)
- func (api *API) SecretQuote(w http.ResponseWriter, req *http.Request)
- func (api *API) UserInfo(w http.ResponseWriter, req *http.Request)
- func (api *API) UserLogin(w http.ResponseWriter, req *http.Request)
- func (api *API) UserSignup(w http.ResponseWriter, req *http.Request)
- type UserJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API -
func (*API) GetUserFromContext ¶
GetUserFromContext - return User reference from header token
func (*API) SecretQuote ¶
func (api *API) SecretQuote(w http.ResponseWriter, req *http.Request)
SecretQuote -
func (*API) UserInfo ¶
func (api *API) UserInfo(w http.ResponseWriter, req *http.Request)
UserInfo - example to get
func (*API) UserLogin ¶
func (api *API) UserLogin(w http.ResponseWriter, req *http.Request)
UserLogin -
func (*API) UserSignup ¶
func (api *API) UserSignup(w http.ResponseWriter, req *http.Request)
UserSignup -
Click to show internal directories.
Click to hide internal directories.