Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package server constructs the process transports without starting them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Servers

type Servers struct {
	HTTP *httpx.Server
}

Servers contains only the listeners enabled for this project.

func New

func New(ctx context.Context, cfg config.Config, check health.Checker, log logger.Logger) (*Servers, error)

New validates configuration and constructs transports. The caller mounts handlers and passes the transports to app.WithHooks in explicit order.

Jump to

Keyboard shortcuts

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