server

package
v0.0.0-...-178f255 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(storage storage.Storage, templateRegistry *TemplateRegistry) *Server

func (*Server) Run

func (s *Server) Run()

type TemplateRegistry

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

func NewTemplateRegistry

func NewTemplateRegistry(templatesPath string) *TemplateRegistry

func (*TemplateRegistry) Render

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

Jump to

Keyboard shortcuts

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