DecoderOptionLastEventID returns an option that sets the last event ID property for a Decoder when the Decoder is created.
DecoderOptionReadTimeout returns an option that sets the read timeout interval for a Decoder when the Decoder is created.
NewDecoder returns a new Decoder instance that reads events with the given io.Reader.
NewDecoderWithOptions returns a new Decoder instance that reads events with the given io.Reader, with optional configuration parameters.
NewEncoder returns an Encoder for a given io.Writer.
NewServer creates a new Server instance.
NewSliceRepository creates a SliceRepository.
StreamOptionCanRetryFirstConnection returns an option that determines whether to apply retry behavior to the first connection attempt for the stream.
StreamOptionDynamicQueryParams returns an option that sets a function to generate query parameters each time the stream needs to make a fresh connection.
StreamOptionErrorHandler returns an option that causes a Stream to call the specified function for stream errors.
StreamOptionHTTPClient returns an option that overrides the default HTTP client used by a stream when the stream is created.
StreamOptionInitialRetry returns an option that sets the initial retry delay for a stream when the stream is created.
StreamOptionLastEventID returns an option that sets the initial last event ID for a stream when the stream is created.
StreamOptionLogger returns an option that sets the logger for a stream when the stream is created (to change it later, you can use SetLogger).
StreamOptionReadTimeout returns an option that sets the read timeout interval for a stream when the stream is created.
StreamOptionRetryResetInterval returns an option that sets the minimum amount of time that a connection must stay open before the Stream resets its backoff delay.
StreamOptionUseBackoff returns an option that determines whether to use an exponential backoff for reconnection delays.
StreamOptionUseJitter returns an option that determines whether to use a randomized jitter for reconnection delays.
Subscribe to the Events emitted from the specified url.
SubscribeWith takes a HTTP client and request providing customization over both headers and control over the HTTP client settings (timeouts, tls, etc) If request.Body is set, then request.GetBody should also be set so that we can reissue the request Deprecated: use SubscribeWithRequestAndOptions instead.
SubscribeWithRequest will take an http.Request to set up the stream, allowing custom headers to be specified, authentication to be configured, etc.
SubscribeWithRequestAndOptions takes an initial http.Request to set up the stream - allowing custom headers, authentication, etc.
SubscribeWithURL subscribes to the Events emitted from the specified URL.