template

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Template

type Template struct {
	Template string `cfg:"template"`
	// RawBody is the value of the body is raw or is an interface{}
	RawBody bool `cfg:"raw_body"`
	// Status code to return, default is from response
	StatusCode int `cfg:"status_code"`
	// Value from load name, key value and type is map[string]interface{}
	Value string `cfg:"value"`
	// Additional is additional values for the template
	Additional map[string]interface{} `cfg:"additional"`
	// Headers are additional to return
	Headers map[string]string `cfg:"headers"`
	// ApplyStatusCodes on specific status codes
	ApplyStatusCodes []int `cfg:"apply_status_codes"`

	// Trust is allow to use powerful functions
	Trust bool `cfg:"trust"`
	// WorkDir is the directory for some functions
	WorkDir string `cfg:"work_dir"`
	// Delims is the delimiters for the template
	Delims []string `cfg:"delims"`
	// contains filtered or unexported fields
}

func (*Template) Middleware

func (s *Template) Middleware() (echo.MiddlewareFunc, error)

Jump to

Keyboard shortcuts

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