server

package
v0.0.0-...-d95a457 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SINGLE = "\x0000"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Listeners map[string]net.Listener
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addrs map[string]string) (s *Server, err error)

addrs is updated with the actual listener address after binding. This allows requesting a random unused port by omitting the port part of an Addr.

func NewSingleServer

func NewSingleServer(addr *string) (s *Server, err error)

func (*Server) IsStopping

func (s *Server) IsStopping() bool

func (*Server) Listener

func (s *Server) Listener() net.Listener

func (*Server) RequestShutdown

func (s *Server) RequestShutdown()

func (*Server) SetListener

func (s *Server) SetListener(listener net.Listener)

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) SignalFinish

func (s *Server) SignalFinish()

func (*Server) SignalReady

func (s *Server) SignalReady()

func (*Server) WaitForFinish

func (s *Server) WaitForFinish()

func (*Server) WaitForReady

func (s *Server) WaitForReady()

func (*Server) WaitForShutdown

func (s *Server) WaitForShutdown()

type Signal

type Signal struct{}
var Ping Signal

type SignalChan

type SignalChan chan Signal

Jump to

Keyboard shortcuts

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