httpserver

package
v0.0.0-...-9f97bf2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapConfig

type BootstrapConfig struct {
	StaticDirectories map[string]string
	CDPManagerBaseURL string
	DBDriver          string
	DBDSN             string
}

type Server

type Server interface {
	Start(addr string) error
	Shutdown(ctx context.Context) error
}

func Bootstrap

func Bootstrap(config BootstrapConfig) (Server, error)

type ServerBuilder

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

func New

func New() *ServerBuilder

func (*ServerBuilder) Build

func (b *ServerBuilder) Build() *echo.Echo

func (*ServerBuilder) WithDefaultMiddleware

func (b *ServerBuilder) WithDefaultMiddleware() *ServerBuilder

func (*ServerBuilder) WithErrorHandler

func (b *ServerBuilder) WithErrorHandler() *ServerBuilder

func (*ServerBuilder) WithNotFound

func (b *ServerBuilder) WithNotFound() *ServerBuilder

func (*ServerBuilder) WithRoutes

func (b *ServerBuilder) WithRoutes(register func(e *echo.Echo)) *ServerBuilder

func (*ServerBuilder) WithStaticAssets

func (b *ServerBuilder) WithStaticAssets(directories map[string]string) *ServerBuilder

Jump to

Keyboard shortcuts

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