controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTokenInvalid token校验失败
	ErrTokenInvalid = pike.NewHTTPError(http.StatusUnauthorized, "token is invalid")
)

Functions

func AdminHandler

func AdminHandler(config AdminConfig) pike.Middleware

AdminHandler admin handler

Types

type AdminConfig

type AdminConfig struct {
	Prefix    string
	Token     string
	Client    *cache.Client
	Directors pike.Directors
}

AdminConfig admin config

Jump to

Keyboard shortcuts

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