server

package
Version: v0.0.0-...-0f20b9f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the http serving object

func New

func New(announcer core.Announcer, parsers []core.Parser) *Server

New returns a new Server with the provided parsers

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string) error

ListenAndServe starts listening and serving traffic

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown closes the server so it stops listening

Source Files

Jump to

Keyboard shortcuts

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