Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink implements a simple WebSocket sink. It dials out to a ws/wss URL and writes one text frame per message. The frame payload is produced by the configured Formatter (defaults to JSON when wired by factory). Optional application-level ACK can be enabled via RequireAck.
func New ¶
func New(url string, headers map[string]string, subprotocols []string, connectTimeout, writeTimeout, heartbeatInterval time.Duration, requireAck bool, fmttr hermod.Formatter) *Sink
New creates a new WebSocket sink.
func (*Sink) SetTLSConfig ¶
SetTLSConfig allows configuring TLS options and optional cert pinning.
Click to show internal directories.
Click to hide internal directories.