server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version receives its value at compile time

Functions

This section is empty.

Types

type Server

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

Server is the app entry point: it contains the HTTP server, config and services

func New

func New(e env.Bag) *Server

New returns a new http server for the API

func (*Server) Serve

func (s *Server) Serve() error

Serve listens and serves for incoming HTTP request. It also handles graceful shutdown logic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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