Documentation
¶
Index ¶
- Constants
- type Server
- func (s *Server) IsStopping() bool
- func (s *Server) Listener() net.Listener
- func (s *Server) RequestShutdown()
- func (s *Server) SetListener(listener net.Listener)
- func (s *Server) Shutdown()
- func (s *Server) SignalFinish()
- func (s *Server) SignalReady()
- func (s *Server) WaitForFinish()
- func (s *Server) WaitForReady()
- func (s *Server) WaitForShutdown()
- type Signal
- type SignalChan
Constants ¶
View Source
const SINGLE = "\x0000"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func NewServer ¶
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 (*Server) IsStopping ¶
func (*Server) RequestShutdown ¶
func (s *Server) RequestShutdown()
func (*Server) SetListener ¶
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 SignalChan ¶
type SignalChan chan Signal
Click to show internal directories.
Click to hide internal directories.