Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Routes = map[myrouter.RouteKey]func(w http.ResponseWriter, r *http.Request, ps common.QueryMap){ {Path: "/api/v2/usertokens", Method: http.MethodPost, NeedAuth: false}: h.Create, }
Functions ¶
This section is empty.
Types ¶
type CreateToken ¶
func NewCreateToken ¶
func NewCreateToken(c u.Create) CreateToken
type PostResponse ¶
type PostResponse struct { *myhttp.ResponseBase UserToken *UserToken `json:"user_token,omitempty"` }
func NewPostResponse ¶
func NewPostResponse(res *myhttp.ResponseBase, token auth.UserToken) *PostResponse
Click to show internal directories.
Click to hide internal directories.