server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(s *Server)

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithOptions

func WithOptions(opts ...Option) Option

type Server

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

Server is the parent container for network listeners and responders.

func New

func New(opts ...Option) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is the entrypoint for all HTTP requests

Jump to

Keyboard shortcuts

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