action

package
Version: v0.0.0-...-0884369 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB = articlesDB{}

Fake db

Functions

This section is empty.

Types

type Article

type Article struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Body  string `json:"body"`
}

type CreateArticle

type CreateArticle struct {
	Request struct {
		Title string `json:"title" validate:"min=3,max=40,regexp=^[a-zA-Z]*$"`
		Body  string `json:"body" validate:"min=10,max=40"`
	}
}

func (CreateArticle) Action

func (ctrl CreateArticle) Action() (interface{}, error)

type GetArticles

type GetArticles struct {
}

func (GetArticles) Action

func (ctrl GetArticles) Action() (interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL