Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Addresses []string // Addresses to listen to. Run func([]net.Listener) error // Handle the connections. All running connections should be closed before returning (srv.Shutdown for http.Server for instance). Dialer Dialer // Dialer for child-parent communication. Let empty for default dialer (PrefixDialer{}). Network string // "tcp" (default if empty), "tcp4", "tcp6", "unix" or "unixpacket" ErrorHandler func(string, error) // print to stdout if empty }
type Dialer ¶
type Dialer interface { Listen(name string) (net.Listener, error) Dial(name string) (net.Conn, error) }
Dialer is used for the child-parent communication.
type PrefixDialer ¶
type PrefixDialer struct {
Prefix string
}
PrefixDialer uses github.com/Microsoft/go-winio.{DialPipe,ListenPipe} on windows and net.{Dial,Listen} on other platforms.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.