server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server wraps the application logic inside HTTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s app.Store) func() (*http.Server, error)

New returns a function that creates a new http.Server. This functions composes the application and binds it to the server. Here you can configure custom middlewares, routes, etc.

The binding chain goes as follows:

http.Server -> http.ServeMux -> api.Server -> app.App -> store.Store

Types

This section is empty.

Jump to

Keyboard shortcuts

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