handler

package
v0.0.0-...-2f0833a Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BingPic

func BingPic(w http.ResponseWriter, r *http.Request)

BingPic 每日背景

func Check

func Check(h http.Handler) http.Handler

Check 检查用户登录

func Error

func Error(w http.ResponseWriter, code int, format string, a ...interface{})

Error 错误页面

func GroupAdd

func GroupAdd(w http.ResponseWriter, r *http.Request)

GroupAdd 添加角色

func GroupEdit

func GroupEdit(w http.ResponseWriter, r *http.Request)

GroupEdit 角色管理

func Home

func Home(w http.ResponseWriter, r *http.Request)

Home 首页

func Install

func Install(path string, debug bool, s *mux.Router) http.Handler

Install 安装配置

func Limit

func Limit(b int, f func(http.ResponseWriter, *http.Request)) http.Handler

Limit 请求限制

func LogHandler

func LogHandler(h http.Handler) http.Handler

LogHandler 日志打印

func Login

func Login(w http.ResponseWriter, r *http.Request)

Login 登录页

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

Logout 登出

func Logs

func Logs(w http.ResponseWriter, r *http.Request)

Logs 操作日志

func Password

func Password(w http.ResponseWriter, r *http.Request)

Password 密码修改

func Profile

func Profile(w http.ResponseWriter, r *http.Request)

Profile 个人中心

func Upload

func Upload(w http.ResponseWriter, r *http.Request)

Upload 上传文件

func UserAdd

func UserAdd(w http.ResponseWriter, r *http.Request)

UserAdd 用户添加

func UserDelete

func UserDelete(w http.ResponseWriter, r *http.Request)

UserDelete 用户删除

func Users

func Users(w http.ResponseWriter, r *http.Request)

Users 用户管理

func Watch

func Watch(tpl string, r *mux.Router) error

Watch 初始化控制层

Types

type RouterWrap

type RouterWrap struct {
	*mux.Router
}

RouterWrap 路由封装

func (RouterWrap) HandleFunc

func (r RouterWrap) HandleFunc(path string, h http.HandlerFunc) *mux.Route

HandleFunc 反射函数名

Jump to

Keyboard shortcuts

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