app

package
v0.0.0-...-c65080c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(e *echo.Echo, db *gorm.DB, config *Config)

func StartServer

func StartServer(configPath string)

Types

type Config

type Config struct {
	Server Server
}

func ParseConfig

func ParseConfig(configPath string) *Config

type Server

type Server struct {
	ListenAddress string
	StaticDirPath string
}

type TemplateRenderer

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

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

Jump to

Keyboard shortcuts

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