controllers

package
v0.0.0-...-0169c2d Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DealAvailableColor

func DealAvailableColor(args ...interface{}) string

DealAvailableColor {{checktime . | availdcolor}}

func DealAvailablePipeline

func DealAvailablePipeline(args ...interface{}) string

DealAvailablePipeline {{checktime . | s2bool}}

func DealClassName

func DealClassName(args ...interface{}) string

DealClassName {{.ClassNO | clsname}}

func DealTimeAvailable

func DealTimeAvailable(args ...interface{}) string

DealTimeAvailable {{checktime .}}

func DealTimeFormat

func DealTimeFormat(args ...interface{}) string

DealTimeFormat {{.Time | time}}

func DealWebConstance

func DealWebConstance(args ...interface{}) string

DealWebConstance {{"Key" | tr}}

func GetFileMD5

func GetFileMD5(path string) (string, error)

GetFileMD5 to get md5

func ToView

func ToView(w http.ResponseWriter, name string, model interface{})

ToView of the controller

Types

type AdminController

type AdminController struct {
}

AdminController /submit

func (*AdminController) Get

Get action

func (*AdminController) Post

Post action

type HistoryController

type HistoryController struct {
}

HistoryController /submit

func (*HistoryController) Get

Get action

func (*HistoryController) Post

Post action

type HomeController

type HomeController struct {
}

HomeController "/"

func (*HomeController) Get

Get action

func (*HomeController) Post

Post action

type IController

type IController interface {
	Get(w http.ResponseWriter, r *http.Request)
	Post(w http.ResponseWriter, r *http.Request)
}

IController interface

type LoginController

type LoginController struct {
}

LoginController "/login"

func (*LoginController) Get

Get action

func (*LoginController) Post

Post action

type SubmitController

type SubmitController struct {
}

SubmitController /submit

func (*SubmitController) Get

Get action

func (*SubmitController) Post

Post action

Jump to

Keyboard shortcuts

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