server

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

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

Go to latest
Published: Feb 27, 2026 License: GPL-3.0 Imports: 12 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 wraps http.Server with graceful shutdown.

func New

func New(cfg *config.Config, log *logger.Logger, notifier *webhook.Notifier) *Server

New constructs a Server.

func (*Server) Start

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

Start configures routes, binds the listener, and serves until ctx is cancelled.

Jump to

Keyboard shortcuts

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