Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionHandler ¶
ConnectionHandler handles a single TCP connection.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager starts and stops TCP servers.
func NewManager ¶
func NewManager(servers []ServerConfig, m *metrics.Collector) *Manager
type ServerConfig ¶
type ServerConfig struct {
Name string
Address string
Handler ConnectionHandler // For generic TCP accept loop.
Starter Starter // For self-managed servers (SMTP, etc.).
}
ServerConfig describes a TCP server a module needs. Provide either Handler (for generic TCP) or Starter (for self-managed servers).