httpserver

package
v0.0.0-...-3c68a0f Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port      int    `koanf:"port"`
	Cors      Cors   `koang:"cors"`
	BodyLimit string `koang:"body_limit"`
}

type Cors

type Cors struct {
	AllowOrigins []string `koanf:"allow_origins"`
}

type Server

type Server struct {
	Router *echo.Echo
	// contains filtered or unexported fields
}

func New

func New(cfg Config, log *slog.Logger) Server

func (Server) Start

func (s Server) Start() error

func (Server) Stop

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

Jump to

Keyboard shortcuts

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