server

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: BSD-3-Clause-Clear Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoError

func EchoError(c echo.Context, err error, code int, msg string) error

func NewEchoServer

func NewEchoServer() *echo.Echo

func ParseJsonBody

func ParseJsonBody(c echo.Context, bytes []byte, res any) error

func ReadBody

func ReadBody(c echo.Context) ([]byte, error)

func ReadJsonBody

func ReadJsonBody(c echo.Context, res any) error

Types

type Server

type Server interface {
	Start(quit chan error)
	Shutdown(timeout time.Duration)
	GetAddress() string
	GetDnsName() string
}

func NewServer

func NewServer(ctx context.Context, echo *echo.Echo, name string, bindAddr string, tlsConfig *tls.Config) Server

Directories

Path Synopsis
ui
api
pagectx
Package pagectx holds the shared "base" page context types used to render HTML pages that extend base.html.
Package pagectx holds the shared "base" page context types used to render HTML pages that extend base.html.
web

Jump to

Keyboard shortcuts

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