Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArticleResource ¶
NewArticleResource creates an ArticleResource.
func NewArticlesResource ¶
NewArticlesResource creates an ArticlesResource.
Types ¶
type ArticleResource ¶
ArticleResource is a resource.
func (*ArticleResource) Bind ¶
func (resc *ArticleResource) Bind(i interface{})
Bind binds specified values to the resource.
func (*ArticleResource) Href ¶
func (resc *ArticleResource) Href() string
Href returns a path of resource.
func (*ArticleResource) OnGet ¶
func (resc *ArticleResource) OnGet(w http.ResponseWriter, r *http.Request)
OnGet handles the GET request.
func (*ArticleResource) OnPatch ¶
func (resc *ArticleResource) OnPatch(w http.ResponseWriter, r *http.Request)
OnPatch handles the PATCH request.
func (*ArticleResource) View ¶
func (resc *ArticleResource) View() interface{}
View returns a resource view.
type ArticlesResource ¶
ArticlesResource is a resource.
func (*ArticlesResource) Bind ¶
func (resc *ArticlesResource) Bind(i interface{})
Bind binds specified values to the resource.
func (*ArticlesResource) Href ¶
func (resc *ArticlesResource) Href() string
Href returns a path of resource.
func (*ArticlesResource) OnGet ¶
func (resc *ArticlesResource) OnGet(w http.ResponseWriter, r *http.Request)
OnGet handles the GET request.
func (*ArticlesResource) OnPost ¶
func (resc *ArticlesResource) OnPost(w http.ResponseWriter, r *http.Request)
OnPost handles the POST request.
func (*ArticlesResource) View ¶
func (resc *ArticlesResource) View() interface{}
View returns a resource view.
type IndexResource ¶
IndexResource is a resource.
func (*IndexResource) Href ¶
func (resc *IndexResource) Href() string
Href returns a path of resource.
func (*IndexResource) OnGet ¶
func (resc *IndexResource) OnGet(w http.ResponseWriter, r *http.Request)
OnGet handles the GET request.
func (*IndexResource) View ¶
func (resc *IndexResource) View() interface{}
View returns a resource view.
Click to show internal directories.
Click to hide internal directories.