From 16db4da0517edb6c74e1a40dad52417d6d333210 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Sat, 15 Feb 2014 21:10:37 -0800 Subject: [PATCH] Change name to listenbuffer Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- socketactivation/activation.go => listenbuffer/buffer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename socketactivation/activation.go => listenbuffer/buffer.go (85%) diff --git a/socketactivation/activation.go b/listenbuffer/buffer.go similarity index 85% rename from socketactivation/activation.go rename to listenbuffer/buffer.go index 0edbcaa..c350805 100644 --- a/socketactivation/activation.go +++ b/listenbuffer/buffer.go @@ -3,7 +3,7 @@ listening on a socket, unix, tcp, udp but hold connections until the application has booted and is ready to accept them */ -package socketactivation +package listenbuffer import ( "fmt" @@ -11,9 +11,9 @@ import ( "time" ) -// NewActivationListener returns a listener listening on addr with the protocol. It sets the +// NewListenBuffer returns a listener listening on addr with the protocol. It sets the // timeout to wait on first connection before an error is returned -func NewActivationListener(proto, addr string, activate chan struct{}, timeout time.Duration) (net.Listener, error) { +func NewListenBuffer(proto, addr string, activate chan struct{}, timeout time.Duration) (net.Listener, error) { wrapped, err := net.Listen(proto, addr) if err != nil { return nil, err