router

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(tmplBox *rice.Box, extraData map[string]string, secret []byte) *echo.Echo

New function

Types

type TemplateRegistry

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

TemplateRegistry is a custom html/template renderer for Echo framework

func (*TemplateRegistry) Render

func (t *TemplateRegistry) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render e.Renderer interface

type Validator

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

Validator struct

func NewValidator

func NewValidator() *Validator

NewValidator func

func (*Validator) Validate

func (v *Validator) Validate(i interface{}) error

Validate func

Jump to

Keyboard shortcuts

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