internal

package
v0.0.0-...-044e33f Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerInit

func LoggerInit(e *echo.Echo, conf Conf)

func RendererInit

func RendererInit(e *echo.Echo)

func TemplateFunctions

func TemplateFunctions() template.FuncMap

Types

type Conf

type Conf struct {
	Agent struct {
		Token string
		Name  string
	}
	Server struct {
		Port     int
		LogLevel string `yaml:"logLevel"`
	}
}

Go struct representing the config.yaml

func GetConf

func GetConf() Conf

Read the config.yaml into a go object

type Template

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

func NewTemplate

func NewTemplate() *Template

func (*Template) Render

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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