httpserver

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

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Essentials

type Essentials struct {
	Logger           zerolog.Logger
	Config           config.Config
	WebSocketHandler http.Handler
}

Essentials contains the required arguments for New.

type Server

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

Server serves HTTP requests.

func New

func New(es Essentials) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

Jump to

Keyboard shortcuts

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