Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TwitterBackend ¶
type TwitterBackendImpl ¶
type TwitterBackendImpl struct{}
func (*TwitterBackendImpl) GetTwitterClientWithAccessTokens ¶
func (t *TwitterBackendImpl) GetTwitterClientWithAccessTokens(ctx context.Context, consumerKey string, consumerSecret string, accessToken string, accessTokenSecret string) (TwitterClient, error)
type TwitterClient ¶
type TwitterClient interface { SearchUsers(query string, page int, count int) ([]twitter.User, error) LookupUsers(screenNames []string) ([]twitter.User, error) FriendshipLookup(fromScreenName, toScreenName string) (*twitter.Relationship, error) }
This is an interface that abstracts the business logic related to Twitter APIs.
Having an internal interface helps reducing dependency binding and helps in testing.
Click to show internal directories.
Click to hide internal directories.