Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Endpoints = make(twitterEndpoints)
Endpoints is a map of twitter endpoints used to manage rules and streams.
Functions ¶
func NewHttpClientMock ¶
func NewHttpClientMock(token string) *mockHttpClient
Types ¶
type IHttpClient ¶
type IHttpClient interface { NewHttpRequest(opts *RequestOpts) (*http.Response, error) GetRules() (*http.Response, error) GetSearchStream(queryParams *url.Values) (*http.Response, error) AddRules(queryParams *url.Values, body string) (*http.Response, error) GenerateUrl(name string, queryParams *url.Values) (string, error) }
IHttpClient is the interface the httpClient struct implements.
func NewHttpClient ¶
func NewHttpClient(token string) IHttpClient
NewHttpClient constructs a an HttpClient to interact with twitter.
Click to show internal directories.
Click to hide internal directories.