http

package
v0.0.0-...-08bb043 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogMiddleware

func LogMiddleware(conf *configuration.Configuration, group string) echo.MiddlewareFunc

LogMiddleware set the own logger

func RequestMiddleware

func RequestMiddleware(conf *configuration.Configuration) echo.MiddlewareFunc

Types

type Server

type Server struct {
	// Name the server name
	Name string
	// contains filtered or unexported fields
}

Server the server struct

func NewServer

func NewServer(conf *configuration.Configuration) Server

func (Server) Http

func (server Server) Http() *echo.Echo

Http returns the http instance

func (Server) Init

func (server Server) Init(conf *configuration.Configuration, webFiles *embed.FS) error

Init initialize the server middlewares, routes and embed resources

func (Server) Start

func (server Server) Start(conf *configuration.Configuration) error

Start starts the http server. Before starting, it is connected with the embed resources

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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