Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // ConnectTimeout defines connection timeout. ConnectTimeout time.Duration // KeepAliveTimeout defines the maximum amount of time that an inactive connection // would be considered alive. KeepAliveTimeout time.Duration // RequestTimeout defines component stream request timeout. RequestTimeout time.Duration // MaxStanzaSize is the maximum size a listener incoming stanza may have. MaxStanzaSize int // Secret is the external component shared secret. Secret string }
Options defines component connection options.
type SocketListener ¶
type SocketListener struct {
// contains filtered or unexported fields
}
SocketListener represents a component socket listener type.
func NewSocketListener ¶
func NewSocketListener( bindAddr string, port int, hosts *host.Hosts, comps *component.Components, extCompMng *extcomponentmanager.Manager, router router.Router, shapers shaper.Shapers, sn *sonar.Sonar, opts Options, ) *SocketListener
NewSocketListener returns a new external component socket listener.
Click to show internal directories.
Click to hide internal directories.