middleware

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2016 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LDumper *lua.State
View Source
var Preloaded chan *lua.State

Functions

func Bind

func Bind(L *lua.State, root string)

func BindCarbon

func BindCarbon(L *lua.State)

func BindComs

func BindComs(L *lua.State)

func BindContext

func BindContext(L *lua.State, context *gin.Context)

func BindConversions

func BindConversions(L *lua.State)

func BindEncoding added in v1.2.2

func BindEncoding(L *lua.State)

func BindEngine

func BindEngine(L *lua.State)

func BindIOEnhancements

func BindIOEnhancements(L *lua.State)

func BindKVStore

func BindKVStore(L *lua.State)

func BindMarkdown

func BindMarkdown(L *lua.State)

func BindMiddleware

func BindMiddleware(L *lua.State)

func BindNet

func BindNet(L *lua.State)

func BindOSEnhancements

func BindOSEnhancements(L *lua.State)

func BindOther

func BindOther(L *lua.State)

func BindPhysFS

func BindPhysFS(L *lua.State)

func BindRedis

func BindRedis(L *lua.State)

func BindStatic

func BindStatic(L *lua.State, cfe *cache.Cache)

func BindThread

func BindThread(L *lua.State)

func CGI added in v1.2.1

func CGI(path, dir string, args, env []string) func(*gin.Context)

func CGI_Dynamic added in v1.2.1

func CGI_Dynamic(path, dir string, args, env []string) func(*gin.Context)

func Combine added in v1.2.1

func Combine(middlewares []func(*gin.Context)) func(*gin.Context)

func DLRWS_NS added in v1.2.1

func DLRWS_NS(bcode string, dobind bool, vals map[string]interface{}) (func(*gin.Context), error)

func DLRWS_RUS

func DLRWS_RUS(bcode string, instances int, dobind bool, vals map[string]interface{}) (func(*gin.Context), error)

func DLR_NS

func DLR_NS(bcode string, dobind bool, vals map[string]interface{}) (func(*gin.Context), error)

Route creation by lua

func DLR_RUS

func DLR_RUS(bcode string, instances int, dobind bool, vals map[string]interface{}) (func(*gin.Context), error)

func Echo

func Echo(status int, s string) func(*gin.Context)

func EchoHTML

func EchoHTML(status int, s string) func(*gin.Context)

func ExtRoute

func ExtRoute(plan Plan) func(*gin.Context)

Dynamic routing based on file extension given by a map.

func GetInstance

func GetInstance() *lua.State

func If_Not_Regexp added in v1.2.1

func If_Not_Regexp(regex string, handler func(*gin.Context)) (func(*gin.Context), error)

func If_Not_Status added in v1.2.1

func If_Not_Status(status int, handler func(*gin.Context)) func(*gin.Context)

func If_Not_Written added in v1.2.1

func If_Not_Written(handler func(*gin.Context)) func(*gin.Context)

func If_Regexp added in v1.2.1

func If_Regexp(regex string, handler func(*gin.Context)) (func(*gin.Context), error)

func If_Status added in v1.2.1

func If_Status(status int, handler func(*gin.Context)) func(*gin.Context)

func If_Written added in v1.2.1

func If_Written(handler func(*gin.Context)) func(*gin.Context)

func Init

func Init(j int, cfe_new *cache.Cache, kvstore_new *cache.Cache, root string)

Init

func Lua

func Lua() func(*gin.Context)

PHP-like lua scripts

func Preloader

func Preloader()

func VHOST

func VHOST(plan Plan) func(*gin.Context)

Dynamic routing based on host given by a map.

func VHOST_Middleware

func VHOST_Middleware(plan Plan) gin.HandlerFunc

Types

type Plan

type Plan map[string]func(*gin.Context)

Jump to

Keyboard shortcuts

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