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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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