Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewLine = Delimeter{'\n'} CarriageReturn = Delimeter{'\r'} Space = Delimeter{' '} Comma = Delimeter{','} )
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
Authorizer is implemented to allow delayed attachment of auth data to a request
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(authorizer Authorizer) *Client
NewClient returns a Client. Provide `nil` if no auth is necessary.
type Endpoint ¶
Endpoint is implemented to provide delayed attachment of the URL/Method/Body of a request
type HeaderAuth ¶
type HeaderAuth struct {
Auth string
}
func (HeaderAuth) Authorize ¶
func (h HeaderAuth) Authorize(req *http.Request)
Authorize applys HeaderAuth to a request
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func NewStream ¶
func NewStream(endpoint Endpoint, auth Authorizer, consumer Consumer) *Stream
NewStream returns a Stream
func (*Stream) Disconnect ¶
func (s *Stream) Disconnect()
Disconnect forcefully disconnects from the stream
Click to show internal directories.
Click to hide internal directories.