package handler

import "github.com/labstack/echo/cookbook/twitter/handler"

Index

Constants

const (
	// Key (Should come from somewhere else).
	Key = "secret"
)

Types

type Handler

type Handler struct {
	DB *mgo.Session
}

func (*Handler) CreatePost

func (h *Handler) CreatePost(c echo.Context) (err error)

func (*Handler) FetchPost

func (h *Handler) FetchPost(c echo.Context) (err error)

func (*Handler) Follow

func (h *Handler) Follow(c echo.Context) (err error)

func (*Handler) Login

func (h *Handler) Login(c echo.Context) (err error)

func (*Handler) Signup

func (h *Handler) Signup(c echo.Context) (err error)

Source Files

handler.go post.go user.go

Version
v3.1.0-rc.1+incompatible
Published
Mar 3, 2017
Platform
js/wasm
Imports
8 packages
Last checked
4 hours ago

Tools for package owners.