resource

package
v0.0.0-...-cc16a2d Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexResource

type IndexResource struct {
	PageService *service.PageService
}

IndexResource represents a page resource

func (*IndexResource) ViewIndex

func (r *IndexResource) ViewIndex(c echo.Context) error

ViewIndex shows the index page

type PageResource

type PageResource struct {
	PageService *service.PageService
	AuthService *service.AuthService
	LinkService *service.LinkService
}

PageResource represents a page resource

func (*PageResource) ActionCreate

func (r *PageResource) ActionCreate(c echo.Context) error

ActionCreate creates a page

func (*PageResource) ActionUpdateByID

func (r *PageResource) ActionUpdateByID(c echo.Context) error

ActionUpdateByID updates a page

func (*PageResource) ViewByName

func (r *PageResource) ViewByName(c echo.Context) error

ViewByName shows a page given its name

func (*PageResource) ViewEditByName

func (r *PageResource) ViewEditByName(c echo.Context) error

ViewEditByName shows the editor for a page

type UserResource

type UserResource struct {
	SiteName    string
	AuthService *service.AuthService
}

UserResource represents a page resource

func (*UserResource) ActionLogIn

func (r *UserResource) ActionLogIn(c echo.Context) error

ActionLogIn logs in the user

func (*UserResource) ViewLogIn

func (r *UserResource) ViewLogIn(c echo.Context) error

ViewLogIn shows the Log In page

func (*UserResource) ViewLogOut

func (r *UserResource) ViewLogOut(c echo.Context) error

ViewLogOut logs out the user

Jump to

Keyboard shortcuts

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