controllers

package
v0.0.0-...-679a743 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config *Config
}

App home app

func New

func New(config *Config) *App

New new home app

func (App) ConfigureAdmin

func (App) ConfigureAdmin(Admin *admin.Admin)

ConfigureAdmin configure admin interface

func (App) ConfigureApplication

func (app App) ConfigureApplication(application *application.Application)

ConfigureApplication configure application

type Config

type Config struct {
}

Config home config struct

type Controller

type Controller struct {
	View *render.Render
}

Controller posts controller

func (Controller) Category

func (ctrl Controller) Category(w http.ResponseWriter, req *http.Request)

Category category show page

func (Controller) Index

func (ctrl Controller) Index(w http.ResponseWriter, req *http.Request)

Index posts index page

func (Controller) Show

func (ctrl Controller) Show(w http.ResponseWriter, req *http.Request)

Show post show page

func (Controller) Tag

func (ctrl Controller) Tag(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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