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
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
Click to show internal directories.
Click to hide internal directories.