Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FetchTweets ¶
func (client *Client) FetchTweets(ctx context.Context, log logger.Interface, ftr FetchTweetsRequest) (FetchTweetsResponse, error)
type FetchTweetsRequest ¶
type FetchTweetsRequest struct { MaxResults int EntityID string StartTime time.Time EndTime time.Time }
func (FetchTweetsRequest) Validate ¶
func (request FetchTweetsRequest) Validate() error
type FetchTweetsResponse ¶
type FetchTweetsResponse []Tweet
type MockTweetsFetcher ¶
MockTweetsFetcher is an autogenerated mock type for the TweetsFetcher type
func NewMockTweetsFetcher ¶
func NewMockTweetsFetcher(t NewMockTweetsFetcherT) *MockTweetsFetcher
NewMockTweetsFetcher creates a new instance of MockTweetsFetcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockTweetsFetcher) FetchTweets ¶
func (_m *MockTweetsFetcher) FetchTweets(_a0 context.Context, _a1 logger.Interface, _a2 FetchTweetsRequest) (FetchTweetsResponse, error)
FetchTweets provides a mock function with given fields: _a0, _a1, _a2
type NewMockTweetsFetcherT ¶
type TweetsFetcher ¶
type TweetsFetcher interface {
FetchTweets(context.Context, logger.Interface, FetchTweetsRequest) (FetchTweetsResponse, error)
}
Click to show internal directories.
Click to hide internal directories.