heliosmacaron

package module
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_TPL_SET_NAME = origin_macaron.DEFAULT_TPL_SET_NAME

Variables

Functions

func Config

func Config() *ini.File

func GenerateETag

func GenerateETag(fileSize, fileName, modTime string) string

func GetDefaultListenInfo

func GetDefaultListenInfo() (string, int)

func GetExt

func GetExt(s string) string

func MatchTest

func MatchTest(pattern, url string) bool

func NewRouteMap

func NewRouteMap() interface{}

func ParseTplSet

func ParseTplSet(tplSet string) (tplName string, tplDir string)

func PathUnescape

func PathUnescape(s string) (string, error)

func PrepareCharset

func PrepareCharset(charset string) string

func SetConfig

func SetConfig(source interface{}, others ...interface{}) (_ *ini.File, err error)

func Version

func Version() string

Types

type BeforeFunc

type BeforeFunc = origin_macaron.BeforeFunc

type BeforeHandler

type BeforeHandler = origin_macaron.BeforeHandler

type ComboRouter

type ComboRouter = origin_macaron.ComboRouter

type Context

type Context = origin_macaron.Context

type ContextInvoker

type ContextInvoker = origin_macaron.ContextInvoker

type Delims

type Delims = origin_macaron.Delims

type DummyRender

type DummyRender = origin_macaron.DummyRender

type HTMLOptions

type HTMLOptions = origin_macaron.HTMLOptions

type Handle

type Handle = origin_macaron.Handle

type Handler

type Handler = origin_macaron.Handler

func Logger

func Logger() Handler

func Recovery

func Recovery() Handler

func Renderer

func Renderer(options ...RenderOptions) Handler

func Renderers

func Renderers(options RenderOptions, tplSets ...string) Handler

func Static

func Static(directory string, staticOpt ...StaticOptions) Handler

func Statics

func Statics(opt StaticOptions, dirs ...string) Handler

type Leaf

type Leaf = origin_macaron.Leaf

func NewLeaf

func NewLeaf(parent *Tree, pattern string, handle Handle) *Leaf

type Locale

type Locale = origin_macaron.Locale

type LoggerInvoker

type LoggerInvoker = origin_macaron.LoggerInvoker

type Macaron

type Macaron = origin_macaron.Macaron

func Classic

func Classic() *Macaron

func New

func New() *Macaron

func NewWithLogger

func NewWithLogger(out io.Writer) *Macaron

type Params

type Params = origin_macaron.Params

type Render

type Render = origin_macaron.Render

type RenderOptions

type RenderOptions = origin_macaron.RenderOptions

type Request

type Request = origin_macaron.Request

type RequestBody

type RequestBody = origin_macaron.RequestBody

type ResponseWriter

type ResponseWriter = origin_macaron.ResponseWriter

func NewResponseWriter

func NewResponseWriter(method string, rw http.ResponseWriter) ResponseWriter

type ReturnHandler

type ReturnHandler = origin_macaron.ReturnHandler

type Route

type Route = origin_macaron.Route

type Router

type Router = origin_macaron.Router

func NewRouter

func NewRouter() *Router

type StaticOptions

type StaticOptions = origin_macaron.StaticOptions

type TemplateFile

type TemplateFile = origin_macaron.TemplateFile

type TemplateFileSystem

type TemplateFileSystem = origin_macaron.TemplateFileSystem

type TemplateSet

type TemplateSet = origin_macaron.TemplateSet

func NewTemplateSet

func NewTemplateSet() *TemplateSet

type TplFile

type TplFile = origin_macaron.TplFile

func NewTplFile

func NewTplFile(name string, data []byte, ext string) *TplFile

type TplFileSystem

type TplFileSystem = origin_macaron.TplFileSystem

func NewTemplateFileSystem

func NewTemplateFileSystem(opt RenderOptions, omitData bool) TplFileSystem

type TplRender

type TplRender = origin_macaron.TplRender

type Tree

type Tree = origin_macaron.Tree

func NewSubtree

func NewSubtree(parent *Tree, pattern string) *Tree

func NewTree

func NewTree() *Tree

Jump to

Keyboard shortcuts

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