Documentation
¶
Index ¶
Constants ¶
View Source
const ServerStarterEnvVarName = "SERVER_STARTER_PORT"
Variables ¶
View Source
var (
ErrNoListeningTarget = errors.New("no listening target")
)
Functions ¶
func GetPortsSpecification ¶
func GetPortsSpecification() string
GetPortsSpecification returns the value of SERVER_STARTER_PORT environment variable
Types ¶
type List ¶
type List []Listener
List holds a list of Listeners. This is here just for convenience so that you can do
list.String()
to get a string compatible with SERVER_STARTER_PORT
type Listener ¶
Listener is the interface for things that listen on file descriptors specified by Start::Server / server_starter
type TCPListener ¶
TCPListener is a listener for ... tcp duh.
func (TCPListener) Listen ¶
func (l TCPListener) Listen() (net.Listener, error)
Listen creates a new Listener
func (TCPListener) String ¶
func (l TCPListener) String() string
type UnixListener ¶
type UnixListener struct { Path string // contains filtered or unexported fields }
UnixListener is a listener for unix sockets.
func (UnixListener) Fd ¶
func (l UnixListener) Fd() uintptr
Fd returns the underlying file descriptor
func (UnixListener) Listen ¶
func (l UnixListener) Listen() (net.Listener, error)
Listen creates a new Listener
func (UnixListener) String ¶
func (l UnixListener) String() string
Click to show internal directories.
Click to hide internal directories.