echoext

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPprofHandlers

func AddPprofHandlers(server *echo.Echo)

func NewPProfHandler

func NewPProfHandler(handler http.HandlerFunc) echo.HandlerFunc

func NewZeroLogger

func NewZeroLogger(cfg *viper.Viper, logger zerolog.Logger) echo.MiddlewareFunc

func PongoFilterFileSize

func PongoFilterFileSize(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2.Error)

func PongoFilterTrimSpace

func PongoFilterTrimSpace(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2.Error)

Types

type PongoRenderer

type PongoRenderer struct {
	// contains filtered or unexported fields
}

func NewPongoRenderer

func NewPongoRenderer(
	cfg PongoRendererCfg,
	data map[string]interface{},
	filters map[string]pongo2.FilterFunction,
) (*PongoRenderer, error)

func (*PongoRenderer) Render

func (r *PongoRenderer) Render(w io.Writer, name string, data interface{}, ctx echo.Context) error

type PongoRendererCfg

type PongoRendererCfg struct {
	Debug   bool
	TplsDir string
}

Jump to

Keyboard shortcuts

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