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 ¶
- Version
- v0.9.0
- Published
- Mar 10, 2014
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 4 minutes ago –
Tools for package owners.