api

package
v0.0.0-...-b5fa30d Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiHandler

func ApiHandler(c *Context) error

func JWTTesterHandler

func JWTTesterHandler(c echo.Context) error

func JsonEncodeHandler

func JsonEncodeHandler(c *Context) error

func NewContext

func NewContext() echo.MiddlewareFunc

func PostHandler

func PostHandler(c echo.Context) error

func PostSaveHandler

func PostSaveHandler(c echo.Context) error

func PostsHandler

func PostsHandler(c echo.Context) error

func Routers

func Routers() *echo.Echo

----- API Routers -----

func UserHandler

func UserHandler(c echo.Context) error

func UserLoginHandler

func UserLoginHandler(c echo.Context) error

func UserRegisterHandler

func UserRegisterHandler(c echo.Context) error

Types

type A

type A struct {
	F  string `json:"f,filter:*"`
	F1 string `json:"f_1,filter:a1"`
	F2 string `json:"f_2,filter:a2"`

	B  B `json:"b,filter:*.*"`
	B1 B `json:"b_1,filter:*.b1"`
	B2