web

package
v0.0.0-...-2ef340d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 15 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 {
	Writer         io.Writer
	ListenAddrPort string `default:"127.0.0.1:443"`
	RootDir        string
	CacheDir       string
	Hosts          []string
	DefaultHost    string
	RateLimit      int `default:"100"`
}

type RouteSetup

type RouteSetup struct {
	Host   string
	Prefix string
	Setup  func(w *Web, g *echo.Group)
}

type Web

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

func New

func New(ctx context.Context, c Config) (*Web, error)

func (*Web) Run

func (w *Web) Run() error

func (*Web) SetupRoutes

func (w *Web) SetupRoutes(handlers []RouteSetup) error

Jump to

Keyboard shortcuts

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