Documentation ¶
Index ¶
- type Backend
- func (_m *Backend) EXPECT() *Backend_Expecter
- func (_m *Backend) TweetLookup(ctx context.Context, ids []string, opts twitter.TweetLookupOpts) (*twitter.TweetLookupResponse, error)
- func (_m *Backend) UserLookup(ctx context.Context, ids []string, opts twitter.UserLookupOpts) (*twitter.UserLookupResponse, error)
- func (_m *Backend) UserNameLookup(ctx context.Context, usernames []string, opts twitter.UserLookupOpts) (*twitter.UserLookupResponse, error)
- func (_m *Backend) UserTweetTimeline(ctx context.Context, userID string, opts twitter.UserTweetTimelineOpts) (*twitter.UserTweetTimelineResponse, error)
- type Backend_Expecter
- func (_e *Backend_Expecter) TweetLookup(ctx interface{}, ids interface{}, opts interface{}) *Backend_TweetLookup_Call
- func (_e *Backend_Expecter) UserLookup(ctx interface{}, ids interface{}, opts interface{}) *Backend_UserLookup_Call
- func (_e *Backend_Expecter) UserNameLookup(ctx interface{}, usernames interface{}, opts interface{}) *Backend_UserNameLookup_Call
- func (_e *Backend_Expecter) UserTweetTimeline(ctx interface{}, userID interface{}, opts interface{}) *Backend_UserTweetTimeline_Call
- type Backend_TweetLookup_Call
- type Backend_UserLookup_Call
- type Backend_UserNameLookup_Call
- type Backend_UserTweetTimeline_Call
- type TwitterClient
- func (_m *TwitterClient) EXPECT() *TwitterClient_Expecter
- func (_m *TwitterClient) GetTweets(_a0 context.Context, _a1 []string, _a2 twitter.TweetLookupOpts) (*twitter.TweetLookupResponse, error)
- func (_m *TwitterClient) GetUser(ctx context.Context, username string) (*twitter.UserObj, error)
- func (_m *TwitterClient) GetUserByIDs(_a0 context.Context, _a1 []string) ([]*twitter.UserObj, error)
- func (_m *TwitterClient) GetUserTweets(_a0 context.Context, _a1 string, _a2 twitter.UserTweetTimelineOpts) (*twitter.UserTweetTimelineResponse, error)
- type TwitterClient_Expecter
- func (_e *TwitterClient_Expecter) GetTweets(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TwitterClient_GetTweets_Call
- func (_e *TwitterClient_Expecter) GetUser(ctx interface{}, username interface{}) *TwitterClient_GetUser_Call
- func (_e *TwitterClient_Expecter) GetUserByIDs(_a0 interface{}, _a1 interface{}) *TwitterClient_GetUserByIDs_Call
- func (_e *TwitterClient_Expecter) GetUserTweets(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TwitterClient_GetUserTweets_Call
- type TwitterClient_GetTweets_Call
- type TwitterClient_GetUserByIDs_Call
- type TwitterClient_GetUserTweets_Call
- type TwitterClient_GetUser_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
Backend is an autogenerated mock type for the Backend type
func NewBackend ¶
func NewBackend(t mockConstructorTestingTNewBackend) *Backend
NewBackend creates a new instance of Backend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Backend) EXPECT ¶
func (_m *Backend) EXPECT() *Backend_Expecter
func (*Backend) TweetLookup ¶
func (_m *Backend) TweetLookup(ctx context.Context, ids []string, opts twitter.TweetLookupOpts) (*twitter.TweetLookupResponse, error)
TweetLookup provides a mock function with given fields: ctx, ids, opts
func (*Backend) UserLookup ¶
func (_m *Backend) UserLookup(ctx context.Context, ids []string, opts twitter.UserLookupOpts) (*twitter.UserLookupResponse, error)
UserLookup provides a mock function with given fields: ctx, ids, opts
func (*Backend) UserNameLookup ¶
func (_m *Backend) UserNameLookup(ctx context.Context, usernames []string, opts twitter.UserLookupOpts) (*twitter.UserLookupResponse, error)
UserNameLookup provides a mock function with given fields: ctx, usernames, opts
func (*Backend) UserTweetTimeline ¶
func (_m *Backend) UserTweetTimeline(ctx context.Context, userID string, opts twitter.UserTweetTimelineOpts) (*twitter.UserTweetTimelineResponse, error)
UserTweetTimeline provides a mock function with given fields: ctx, userID, opts
type Backend_Expecter ¶
type Backend_Expecter struct {
// contains filtered or unexported fields
}
func (*Backend_Expecter) TweetLookup ¶
func (_e *Backend_Expecter) TweetLookup(ctx interface{}, ids interface{}, opts interface{}) *Backend_TweetLookup_Call
TweetLookup is a helper method to define mock.On call
- ctx context.Context
- ids []string
- opts twitter.TweetLookupOpts
func (*Backend_Expecter) UserLookup ¶
func (_e *Backend_Expecter) UserLookup(ctx interface{}, ids interface{}, opts interface{}) *Backend_UserLookup_Call
UserLookup is a helper method to define mock.On call
- ctx context.Context
- ids []string
- opts twitter.UserLookupOpts
func (*Backend_Expecter) UserNameLookup ¶
func (_e *Backend_Expecter) UserNameLookup(ctx interface{}, usernames interface{}, opts interface{}) *Backend_UserNameLookup_Call
UserNameLookup is a helper method to define mock.On call
- ctx context.Context
- usernames []string
- opts twitter.UserLookupOpts
func (*Backend_Expecter) UserTweetTimeline ¶
func (_e *Backend_Expecter) UserTweetTimeline(ctx interface{}, userID interface{}, opts interface{}) *Backend_UserTweetTimeline_Call
UserTweetTimeline is a helper method to define mock.On call
- ctx context.Context
- userID string
- opts twitter.UserTweetTimelineOpts
type Backend_TweetLookup_Call ¶
Backend_TweetLookup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TweetLookup'
func (*Backend_TweetLookup_Call) Return ¶
func (_c *Backend_TweetLookup_Call) Return(_a0 *twitter.TweetLookupResponse, _a1 error) *Backend_TweetLookup_Call
func (*Backend_TweetLookup_Call) Run ¶
func (_c *Backend_TweetLookup_Call) Run(run func(ctx context.Context, ids []string, opts twitter.TweetLookupOpts)) *Backend_TweetLookup_Call
type Backend_UserLookup_Call ¶
Backend_UserLookup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserLookup'
func (*Backend_UserLookup_Call) Return ¶
func (_c *Backend_UserLookup_Call) Return(_a0 *twitter.UserLookupResponse, _a1 error) *Backend_UserLookup_Call
func (*Backend_UserLookup_Call) Run ¶
func (_c *Backend_UserLookup_Call) Run(run func(ctx context.Context, ids []string, opts twitter.UserLookupOpts)) *Backend_UserLookup_Call
type Backend_UserNameLookup_Call ¶
Backend_UserNameLookup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserNameLookup'
func (*Backend_UserNameLookup_Call) Return ¶
func (_c *Backend_UserNameLookup_Call) Return(_a0 *twitter.UserLookupResponse, _a1 error) *Backend_UserNameLookup_Call
func (*Backend_UserNameLookup_Call) Run ¶
func (_c *Backend_UserNameLookup_Call) Run(run func(ctx context.Context, usernames []string, opts twitter.UserLookupOpts)) *Backend_UserNameLookup_Call
type Backend_UserTweetTimeline_Call ¶
Backend_UserTweetTimeline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserTweetTimeline'
func (*Backend_UserTweetTimeline_Call) Return ¶
func (_c *Backend_UserTweetTimeline_Call) Return(_a0 *twitter.UserTweetTimelineResponse, _a1 error) *Backend_UserTweetTimeline_Call
func (*Backend_UserTweetTimeline_Call) Run ¶
func (_c *Backend_UserTweetTimeline_Call) Run(run func(ctx context.Context, userID string, opts twitter.UserTweetTimelineOpts)) *Backend_UserTweetTimeline_Call
type TwitterClient ¶
TwitterClient is an autogenerated mock type for the TwitterClient type
func NewTwitterClient ¶
func NewTwitterClient(t mockConstructorTestingTNewTwitterClient) *TwitterClient
NewTwitterClient creates a new instance of TwitterClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TwitterClient) EXPECT ¶
func (_m *TwitterClient) EXPECT() *TwitterClient_Expecter
func (*TwitterClient) GetTweets ¶
func (_m *TwitterClient) GetTweets(_a0 context.Context, _a1 []string, _a2 twitter.TweetLookupOpts) (*twitter.TweetLookupResponse, error)
GetTweets provides a mock function with given fields: _a0, _a1, _a2
func (*TwitterClient) GetUserByIDs ¶
func (_m *TwitterClient) GetUserByIDs(_a0 context.Context, _a1 []string) ([]*twitter.UserObj, error)
GetUserByIDs provides a mock function with given fields: _a0, _a1
func (*TwitterClient) GetUserTweets ¶
func (_m *TwitterClient) GetUserTweets(_a0 context.Context, _a1 string, _a2 twitter.UserTweetTimelineOpts) (*twitter.UserTweetTimelineResponse, error)
GetUserTweets provides a mock function with given fields: _a0, _a1, _a2
type TwitterClient_Expecter ¶
type TwitterClient_Expecter struct {
// contains filtered or unexported fields
}
func (*TwitterClient_Expecter) GetTweets ¶
func (_e *TwitterClient_Expecter) GetTweets(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TwitterClient_GetTweets_Call
GetTweets is a helper method to define mock.On call
- _a0 context.Context
- _a1 []string
- _a2 twitter.TweetLookupOpts
func (*TwitterClient_Expecter) GetUser ¶
func (_e *TwitterClient_Expecter) GetUser(ctx interface{}, username interface{}) *TwitterClient_GetUser_Call
GetUser is a helper method to define mock.On call
- ctx context.Context
- username string
func (*TwitterClient_Expecter) GetUserByIDs ¶
func (_e *TwitterClient_Expecter) GetUserByIDs(_a0 interface{}, _a1 interface{}) *TwitterClient_GetUserByIDs_Call
GetUserByIDs is a helper method to define mock.On call
- _a0 context.Context
- _a1 []string
func (*TwitterClient_Expecter) GetUserTweets ¶
func (_e *TwitterClient_Expecter) GetUserTweets(_a0 interface{}, _a1 interface{}, _a2 interface{}) *TwitterClient_GetUserTweets_Call
GetUserTweets is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 twitter.UserTweetTimelineOpts
type TwitterClient_GetTweets_Call ¶
TwitterClient_GetTweets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTweets'
func (*TwitterClient_GetTweets_Call) Return ¶
func (_c *TwitterClient_GetTweets_Call) Return(_a0 *twitter.TweetLookupResponse, _a1 error) *TwitterClient_GetTweets_Call
func (*TwitterClient_GetTweets_Call) Run ¶
func (_c *TwitterClient_GetTweets_Call) Run(run func(_a0 context.Context, _a1 []string, _a2 twitter.TweetLookupOpts)) *TwitterClient_GetTweets_Call
type TwitterClient_GetUserByIDs_Call ¶
TwitterClient_GetUserByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByIDs'
func (*TwitterClient_GetUserByIDs_Call) Return ¶
func (_c *TwitterClient_GetUserByIDs_Call) Return(_a0 []*twitter.UserObj, _a1 error) *TwitterClient_GetUserByIDs_Call
func (*TwitterClient_GetUserByIDs_Call) Run ¶
func (_c *TwitterClient_GetUserByIDs_Call) Run(run func(_a0 context.Context, _a1 []string)) *TwitterClient_GetUserByIDs_Call
type TwitterClient_GetUserTweets_Call ¶
TwitterClient_GetUserTweets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserTweets'
func (*TwitterClient_GetUserTweets_Call) Return ¶
func (_c *TwitterClient_GetUserTweets_Call) Return(_a0 *twitter.UserTweetTimelineResponse, _a1 error) *TwitterClient_GetUserTweets_Call
func (*TwitterClient_GetUserTweets_Call) Run ¶
func (_c *TwitterClient_GetUserTweets_Call) Run(run func(_a0 context.Context, _a1 string, _a2 twitter.UserTweetTimelineOpts)) *TwitterClient_GetUserTweets_Call
type TwitterClient_GetUser_Call ¶
TwitterClient_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'
func (*TwitterClient_GetUser_Call) Return ¶
func (_c *TwitterClient_GetUser_Call) Return(_a0 *twitter.UserObj, _a1 error) *TwitterClient_GetUser_Call
func (*TwitterClient_GetUser_Call) Run ¶
func (_c *TwitterClient_GetUser_Call) Run(run func(ctx context.Context, username string)) *TwitterClient_GetUser_Call