server

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "0.3.6"

VERSION is the global version string contstant

Variables

This section is empty.

Functions

This section is empty.

Types

type Srv

type Srv struct {
	Cache  *ttlcache.Cache
	Config *config.Config
	Echo   *echo.Echo
}

Srv represents the server object

func (*Srv) LogLevel

func (s *Srv) LogLevel()

LogLevel sets the log level based on the given loglevel in the config object

func (*Srv) RouterAPI added in v0.2.9

func (s *Srv) RouterAPI()

RouterAPI registers the JSON API routes with echo

func (*Srv) Start

func (s *Srv) Start()

Start initializes and starts the web service

Jump to

Keyboard shortcuts

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