server

package module
v0.0.0-...-624563d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright (c) 2014 Tyler Bunnell

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*http.Server
	Timeout           time.Duration
	ListenLimit       int
	ConnState         func(net.Conn, http.ConnState)
	BeforeShutdown    func()
	ShutdownInitiated func()
	NoSignalHandling  bool
	Logger            framework.LogWriter
	Interrupted       bool
	// contains filtered or unexported fields
}

func New

func New() *Server

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe() error

func (*Server) ListenAndServeTLS

func (srv *Server) ListenAndServeTLS(certFile, keyFile string) error

func (*Server) ListenAndServeTLSConfig

func (srv *Server) ListenAndServeTLSConfig(config *tls.Config) error

func (*Server) ListenTLS

func (srv *Server) ListenTLS(certFile, keyFile string) (net.Listener, error)

func (*Server) Serve

func (srv *Server) Serve(listener net.Listener) error

func (*Server) SetAddr

func (srv *Server) SetAddr(addr string)

func (*Server) SetHandler

func (srv *Server) SetHandler(h http.Handler)

func (*Server) SetLogger

func (srv *Server) SetLogger(logger framework.LogWriter)

func (*Server) Stop

func (srv *Server) Stop(timeout time.Duration)

func (*Server) StopChan

func (srv *Server) StopChan() <-chan struct{}

Jump to

Keyboard shortcuts

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