echo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package echo provides the shared Echo HTTP stack: instance assembly, apperror-aware error handling, request logging, Sentry integration, the HTTP server lifecycle, and actor guard middlewares.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPErrorHandler

func HTTPErrorHandler(c *base.Context, err error)

HTTPErrorHandler maps apperror types to HTTP statuses and reports unexpected errors to Sentry.

func NewEcho

NewEcho creates a fully configured Echo instance with the standard middleware stack.

Types

type Server

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

func NewServer

func NewServer(e *base.Echo, c ServerConfig, l logger.Logger) *Server

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

type ServerConfig

type ServerConfig struct {
	Hosts             []string
	ReadTimeout       int
	WriteTimeout      int
	ReadHeaderTimeout int
	IdleTimeout       int
}

ServerConfig holds HTTP server listen addresses and timeouts (seconds).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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