auth

package
v0.0.0-...-b2c9b18 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	C *ctx.Context
}

Handler represents handlers for '/auth'

func NewHandler

func NewHandler(c *ctx.Context) *Handler

func (*Handler) PostAuth

func (h *Handler) PostAuth(c echo.Context) error

PostAuth is handler for /auth

type PostBody

type PostBody struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

PostBody represents payload data format

type Result

type Result struct {
	Result string `json:"result"`
	Token  string `json:"token"`
}

Result represents payload response format

Jump to

Keyboard shortcuts

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