httpserver

package
v0.0.0-nightly.2.7de83... Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server owns the HTTP transport and graceful shutdown lifecycle.

func New

func New(cfg config.Server, logger *zap.Logger, mount func(*gin.Engine)) (*Server, error)

New constructs an HTTP server without starting it.

func (*Server) Serve

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

Serve runs until the context is canceled or the listener fails.

Jump to

Keyboard shortcuts

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