server

package
v0.0.0-...-4f0ea1d Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(db *gorm.DB, conf *config.Config) (*echo.Echo, error)

Initialise the server

Types

type ServerContext

type ServerContext struct {
	echo.Context
	// contains filtered or unexported fields
}

Custom server context

type TemplateRenderer

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

A custom html/template renderer for the Echo framework

func (*TemplateRenderer) Render

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

Render a template document

Jump to

Keyboard shortcuts

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