Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Search(ctx context.Context, input *SearchInput) ([]Tweet, error)
}
Client provides twitter actions.
type Medium ¶
type Medium struct { Start int End int URL string MediaURL string Type string VideoInfo *VideoInfo }
Medium represents Twitter Medium.
type SearchInput ¶
type SearchInput struct { Query string TwitterAccessToken string TwitterAccessTokenSecret string SinceID int64 MaxID int64 }
SearchInput is the input for Search method.
type Tweet ¶
type Tweet struct { TweetID int64 AuthorID int64 User *User Text string Entities Entities CreatedAt time.Time }
Tweet represents Twitter Tweet.
type VideoInfo ¶
type VideoInfo struct { AspectRatio [2]int DurationMillis int Variants []VideoVariant }
VideoInfo is available on video media objects.
type VideoVariant ¶
VideoVariant describes one of the available video formats.
Click to show internal directories.
Click to hide internal directories.