Documentation ¶
Overview ¶
Package stream wraps connections to the Twitter STREAM API to simplify access.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
Option configures aspects of the stream.
func AggressiveBackoff ¶
AggressiveBackoff returns an Option that sets the aggressive exponential backoff.
func ChannelOptions ¶
ChannelOptions returns an Option that configures the internal channel with the given []channel.Option.
func ExponentialBackoff ¶
ExponentialBackoff returns an Option that sets the exponential backoff.
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
Stream is a wrapper the simplifies access to the underlying HTTP client connected to the Twitter STREAM API.
func New ¶
New creates a new Stream that performs the given request on the given authenticated client.
Click to show internal directories.
Click to hide internal directories.