Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrListenerStopped = errors.New("listener was stopped")
Functions ¶
func CreateHTTPListener ¶
CreateHTTPListener creates a net.Listener for main http webapp given main config
func CreateScraperSocket ¶
func CreateScraperSocket(conf *config.Config) (pc net.PacketConn, err error)
CreateScraperSocket creates a UDP Scraper socket
Types ¶
type GracefulHttpCloser ¶
implements io.Closer that gracefully closes an http server
func (*GracefulHttpCloser) Close ¶
func (c *GracefulHttpCloser) Close() error
type GracefulListener ¶
type GracefulListener struct {
// contains filtered or unexported fields
}
GracefulListener provides safe and graceful net.Listener wrapper that prevents error on graceful shutdown
func (*GracefulListener) Addr ¶
func (l *GracefulListener) Addr() net.Addr
func (*GracefulListener) Close ¶
func (l *GracefulListener) Close() (err error)
Click to show internal directories.
Click to hide internal directories.