package
0.0.0-20240925203323-1c1c36ca7cc8
Repository: https://github.com/redhatinsights/sources-api-go.git
Documentation: pkg.go.dev

# Functions

CloseReader attempts to close the provided reader and logs the error if it fails.
CloseWriter attempts to close the provided writer and logs the error if it fails.
Consume consumes a message from the reader with the provided handler function.
CreateDialer returns a Kafka dialer for the Kafka Go library, which includes the TLS configuration and the Sasl mechanism to connect to the managed Kafka.
CreateSaslMechanism returns a Sasl mechanism that Kafka Go requires for setting up the connection.
CreateTLSConfig returns a TLS configuration.
CreateTransport returns a kafka transport that is memoized since it can be used concurrently.
GetReader returns a Kafka reader configured with the specified settings.
GetWriter returns a Kafka writer configured with the specified settings.
Produce produces a message with the writer.

# Variables

package level sharable kafka variables, safe to use concurrently.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Options is a struct for creating a reader/writer.
wrapping the reader/writer types we're using so we can change them under the hood in the future if necessary.
No description provided by the author

# Interfaces

wrapper around the logger methods we need.

# Type aliases

No description provided by the author
No description provided by the author