api

package
v0.0.0-...-01627f8 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 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 Config

type Config struct {
	Port     string
	Services []ServerInterface
}

type Handler

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

func New

func New(config *Config) (*Handler, error)

func (*Handler) Run

func (handler *Handler) Run(ctx context.Context) error

func (*Handler) Shutdown

func (handler *Handler) Shutdown() error

Shutdown give the HTTP server the order to shut down, and await for 5 seconds for all connections to gracefully finish

Jump to

Keyboard shortcuts

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