mvc

package
v0.0.0-...-e474d37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct{}

Controller struct to hold all rest handler fucntions

func (*Controller) CreateArticle

func (c *Controller) CreateArticle(w http.ResponseWriter, r *http.Request)

func (*Controller) GetArticle

func (c *Controller) GetArticle(w http.ResponseWriter, r *http.Request)

func (*Controller) GetArticles

func (c *Controller) GetArticles(w http.ResponseWriter, r *http.Request)

GetArticles page @Summary list Articles @Description get Articles @Accept json @Produce json @Param tenant header string true "tenant name" @Success 200 {array} model.Article @Header 200 {string} Token "qwerty" Failure 400 {object} model.Error @Failure 404 {string} model.Error @Failure 500 {object} model.Error @Router /articles [get] @Security BasicAuth

func (*Controller) Home

func (c *Controller) Home(w http.ResponseWriter, r *http.Request)

Home page @Summary Home page @Description Home page @Accept json @Produce json @Param name query string false "search by name" @Success 200 {object} model.Hello @Header 200 {string} Token "qwerty" Failure 400 {object} model.Error @Router / [get]

func (*Controller) UpdateArticle

func (c *Controller) UpdateArticle(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL