package listenbuffer

import "github.com/dotcloud/docker/pkg/listenbuffer"

Package to allow go applications to immediately start listening on a socket, unix, tcp, udp but hold connections until the application has booted and is ready to accept them

Index

Functions

func NewListenBuffer

func NewListenBuffer(proto, addr string, activate chan struct{}, timeout time.Duration) (net.Listener, error)

NewListenBuffer returns a listener listening on addr with the protocol. It sets the timeout to wait on first connection before an error is returned

Source Files

buffer.go

Version
v0.8.1
Published
Feb 18, 2014
Platform
linux/amd64
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.