app

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

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

Dispatcher of the application.

func NewDispatcher

func NewDispatcher(config config.Configuration) *Dispatcher

NewDispatcher creates a new Dispatcher instance.

func (Dispatcher) Dispatch

func (d Dispatcher) Dispatch(controlCtx context.Context)

Dispatch operation.

type HTTPServer

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

HTTPServer is an interface for handling HTTP connections.

func NewHTTPServer

func NewHTTPServer(
	config config.Configuration,
	routes []ports.Route,
) *HTTPServer

NewHTTPServer allocates and returns a new HTTPServer to handle HTTP connections.

func (*HTTPServer) BlockingClose

func (h *HTTPServer) BlockingClose()

BlockingClose closes all active connections gracefully.

func (*HTTPServer) Shutdown

func (h *HTTPServer) Shutdown(controlCtx context.Context) error

func (*HTTPServer) Start

func (h *HTTPServer) Start() error

Start initiates routes configuration, and starts listening.

Jump to

Keyboard shortcuts

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