server

package
v0.0.0-...-4623b9b Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultPort is default port to listen
	DefaultPort = "8080"

	// EnvPort is environmental variable to change port to listen
	EnvPort = "PORT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Logger *log.Logger
	Stats  *stats.Stats
}

Server is used for various debugging. It opens runtime stats, pprof and appliclation stats.

func (*Server) Start

func (s *Server) Start()

Start starts listening.

Jump to

Keyboard shortcuts

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