server

package
v0.0.0-...-310c153 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HistoryMiddleware

func HistoryMiddleware(s services.Mocks) echo.MiddlewareFunc

func NewMockServer

func NewMockServer(cfg config.Config) (*http.Server, services.Mocks)

func Serve

func Serve(config config.Config)

Types

type TemplateRenderer

type TemplateRenderer struct {
	*template.Template
}

TemplateRenderer is a custom html/template renderer for Echo framework

func (*TemplateRenderer) Render

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

Render renders a template document

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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