httpapp

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoServer

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

EchoServer is the HTTP server wrapper.

func NewEchoServer

func NewEchoServer(
	cfg config.Config,
	pool *pgxpool.Pool,
	q *gen.Queries,
	syncer handlers.SyncRunner,
	reg *registry.ConnectorRegistry,
	mailAdapter mailer.Mailer,
) (*EchoServer, error)

NewEchoServer creates a new HTTP server.

func (*EchoServer) Shutdown

func (es *EchoServer) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the HTTP server.

func (*EchoServer) StartServer

func (es *EchoServer) StartServer(server *http.Server) error

StartServer starts the HTTP server with a custom http.Server.

Directories

Path Synopsis
Package handlers contains HTTP handler logic split by domain.
Package handlers contains HTTP handler logic split by domain.
templ: version: v0.3.1001
templ: version: v0.3.1001

Jump to

Keyboard shortcuts

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