Documentation ¶
Index ¶
- type TagsEndpoint
- type TagsEndpointListResponse
- type TodoEndpoint
- type TodoEndpointInfoRequest
- type TodoEndpointInfoResponse
- type TodoEndpointRemoveRequest
- type TodoEndpointRemoveResponse
- type TodoEndpointUpdateRequest
- type TodoEndpointUpdateResponse
- type TodosEndpoint
- type TodosEndpointListRequest
- type TodosEndpointListResponse
- type TokenEndpoint
- type TokenEndpointInvalidateRequest
- type TokenEndpointInvalidateResponse
- type TokenEndpointNewRequest
- type TokenEndpointNewResponse
- type TokenEndpointTypeRequest
- type TokenEndpointTypeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TagsEndpoint ¶
type TagsEndpoint struct{}
TagsEndpoint represents the controller for operating on the Tags resource
func NewTagsEndpoint ¶
func NewTagsEndpoint() *TagsEndpoint
func (TagsEndpoint) List ¶
func (te TagsEndpoint) List(w http.ResponseWriter, r *http.Request, p httprouter.Params)
type TagsEndpointListResponse ¶
List endpoint
type TodoEndpoint ¶
type TodoEndpoint struct{}
TodoEndpoint represents the controller for operating on the Todo resource
func NewTodoEndpoint ¶
func NewTodoEndpoint() *TodoEndpoint
func (TodoEndpoint) Info ¶
func (te TodoEndpoint) Info(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (TodoEndpoint) Remove ¶
func (te TodoEndpoint) Remove(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (TodoEndpoint) Update ¶
func (te TodoEndpoint) Update(w http.ResponseWriter, r *http.Request, p httprouter.Params)
type TodoEndpointInfoRequest ¶
type TodoEndpointInfoRequest struct { Todo models.Todo `json:"todo"` Auth string `json:"authority"` }
Info endpoint
type TodoEndpointRemoveRequest ¶
type TodoEndpointRemoveRequest struct { Todo models.Todo `json:"todo"` Auth string `json:"authority"` }
Remove endpoint
type TodoEndpointRemoveResponse ¶
type TodoEndpointRemoveResponse struct {
Error string `json:"error,omitempty"`
}
type TodoEndpointUpdateRequest ¶
type TodoEndpointUpdateRequest struct { Todo models.Todo `json:"todo"` Auth string `json:"authority"` }
Update endpoint
type TodoEndpointUpdateResponse ¶
type TodoEndpointUpdateResponse struct {
Error string `json:"error,omitempty"`
}
type TodosEndpoint ¶
type TodosEndpoint struct{}
TodosEndpoint represents the controller for operating on the Todos resource
func NewTodosEndpoint ¶
func NewTodosEndpoint() *TodosEndpoint
func (TodosEndpoint) List ¶
func (te TodosEndpoint) List(w http.ResponseWriter, r *http.Request, p httprouter.Params)
type TodosEndpointListRequest ¶
type TodosEndpointListRequest struct {
Auth string `json:"authority"`
}
List endpoint
type TokenEndpoint ¶
type TokenEndpoint struct{}
TokenEndpoint represents the controller for operating on the Token resource
func NewTokenEndpoint ¶
func NewTokenEndpoint() *TokenEndpoint
func (TokenEndpoint) Invalidate ¶
func (te TokenEndpoint) Invalidate(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (TokenEndpoint) New ¶
func (te TokenEndpoint) New(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (TokenEndpoint) Type ¶
func (te TokenEndpoint) Type(w http.ResponseWriter, r *http.Request, p httprouter.Params)
type TokenEndpointInvalidateRequest ¶
type TokenEndpointInvalidateRequest struct { Token string `json:"token"` UName *string `json:"username"` UPwdUH *string `json:"password"` Auth *string `json:"authority"` }
Invalidate endpoint
type TokenEndpointInvalidateResponse ¶
type TokenEndpointInvalidateResponse struct {
Error string `json:"error,omitempty"`
}
Ref: https://willnorris.com/2014/05/go-rest-apis-and-pointers
type TokenEndpointNewRequest ¶
type TokenEndpointNewRequest struct { Type int `json:"type"` UName *string `json:"username"` UPwdUH *string `json:"password"` Auth *string `json:"authority"` }
New endpoint
type TokenEndpointNewResponse ¶
type TokenEndpointNewResponse struct { Error string `json:"error,omitempty"` Token string `json:"token,omitempty"` }
Ref: https://willnorris.com/2014/05/go-rest-apis-and-pointers
type TokenEndpointTypeRequest ¶
type TokenEndpointTypeRequest struct {
Token string `json:"token"`
}
Type endpoint
type TokenEndpointTypeResponse ¶
type TokenEndpointTypeResponse struct {
Type int `json:"type"`
}
Ref: https://willnorris.com/2014/05/go-rest-apis-and-pointers
Click to show internal directories.
Click to hide internal directories.