Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
entities.proto place.proto tweet.proto twitter.proto user.proto
It has these top-level messages:
HashtagEntity UserMentionEntity Entities Place Tweet SearchTweetsArgs SearchTweetsRet StreamTweetsArgs StreamTweetsRet User
Index ¶
- func RegisterTwitterServer(s *grpc.Server, srv TwitterServer)
- type Entities
- type HashtagEntity
- type Place
- func (*Place) Descriptor() ([]byte, []int)
- func (m *Place) GetCountry() string
- func (m *Place) GetCountryCode() string
- func (m *Place) GetFullName() string
- func (m *Place) GetId() string
- func (m *Place) GetName() string
- func (m *Place) GetPlaceType() string
- func (*Place) ProtoMessage()
- func (m *Place) Reset()
- func (m *Place) String() string
- type SearchTweetsArgs
- func (*SearchTweetsArgs) Descriptor() ([]byte, []int)
- func (m *SearchTweetsArgs) GetCount() int32
- func (m *SearchTweetsArgs) GetGeocode() string
- func (m *SearchTweetsArgs) GetIncludeEntities() bool
- func (m *SearchTweetsArgs) GetLang() string
- func (m *SearchTweetsArgs) GetLocale() string
- func (m *SearchTweetsArgs) GetMaxId() int64
- func (m *SearchTweetsArgs) GetQuery() string
- func (m *SearchTweetsArgs) GetResultType() string
- func (m *SearchTweetsArgs) GetSince() string
- func (m *SearchTweetsArgs) GetSinceId() int64
- func (*SearchTweetsArgs) ProtoMessage()
- func (m *SearchTweetsArgs) Reset()
- func (m *SearchTweetsArgs) String() string
- type SearchTweetsRet
- type SearchTweetsRet_SearchMetadata
- func (*SearchTweetsRet_SearchMetadata) Descriptor() ([]byte, []int)
- func (m *SearchTweetsRet_SearchMetadata) GetCompletedIn() float64
- func (m *SearchTweetsRet_SearchMetadata) GetCount() int32
- func (m *SearchTweetsRet_SearchMetadata) GetMaxId() int64
- func (m *SearchTweetsRet_SearchMetadata) GetQuery() string
- func (m *SearchTweetsRet_SearchMetadata) GetSinceId() int64
- func (*SearchTweetsRet_SearchMetadata) ProtoMessage()
- func (m *SearchTweetsRet_SearchMetadata) Reset()
- func (m *SearchTweetsRet_SearchMetadata) String() string
- type StreamTweetsArgs
- func (*StreamTweetsArgs) Descriptor() ([]byte, []int)
- func (m *StreamTweetsArgs) GetFilterLevel() string
- func (m *StreamTweetsArgs) GetFollow() []string
- func (m *StreamTweetsArgs) GetLanguage() []string
- func (m *StreamTweetsArgs) GetLocations() []string
- func (m *StreamTweetsArgs) GetStallWarnings() bool
- func (m *StreamTweetsArgs) GetTrack() []string
- func (*StreamTweetsArgs) ProtoMessage()
- func (m *StreamTweetsArgs) Reset()
- func (m *StreamTweetsArgs) String() string
- type StreamTweetsRet
- type Tweet
- func (*Tweet) Descriptor() ([]byte, []int)
- func (m *Tweet) GetCoordinates() *Tweet_Coordinates
- func (m *Tweet) GetCreatedAt() string
- func (m *Tweet) GetEntities() *Entities
- func (m *Tweet) GetFavoriteCount() int32
- func (m *Tweet) GetFilterLevel() string
- func (m *Tweet) GetId() int64
- func (m *Tweet) GetInReplyToScreenName() string
- func (m *Tweet) GetInReplyToStatusId() int64
- func (m *Tweet) GetInReplyToUserId() int64
- func (m *Tweet) GetLang() string
- func (m *Tweet) GetPlace() *Place
- func (m *Tweet) GetQuotedStatus() *Tweet
- func (m *Tweet) GetQuotedStatusId() int64
- func (m *Tweet) GetRetweetCount() int32
- func (m *Tweet) GetRetweetedStatus() *Tweet
- func (m *Tweet) GetText() string
- func (m *Tweet) GetTruncated() bool
- func (m *Tweet) GetUser() *User
- func (m *Tweet) GetWithheldCopyright() bool
- func (m *Tweet) GetWithheldInCountries() []string
- func (m *Tweet) GetWithheldScope() string
- func (*Tweet) ProtoMessage()
- func (m *Tweet) Reset()
- func (m *Tweet) String() string
- type Tweet_Coordinates
- type TwitterClient
- type TwitterServer
- type Twitter_StreamTweetsClient
- type Twitter_StreamTweetsServer
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetCreatedAt() string
- func (m *User) GetDescription() string
- func (m *User) GetEntities() *Entities
- func (m *User) GetFavouritesCount() int32
- func (m *User) GetFollowersCount() int32
- func (m *User) GetFriendsCount() int32
- func (m *User) GetGeoEnabled() bool
- func (m *User) GetId() int64
- func (m *User) GetLang() string
- func (m *User) GetLocation() string
- func (m *User) GetName() string
- func (m *User) GetProtected() bool
- func (m *User) GetScreenName() string
- func (m *User) GetStatusesCount() int32
- func (m *User) GetTimezone() string
- func (m *User) GetUtcOffset() int32
- func (m *User) GetVerified() bool
- func (m *User) GetWithheldInCounties() string
- func (m *User) GetWithheldScope() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- type UserMentionEntity
- func (*UserMentionEntity) Descriptor() ([]byte, []int)
- func (m *UserMentionEntity) GetId() int64
- func (m *UserMentionEntity) GetIndicies() []int32
- func (m *UserMentionEntity) GetName() string
- func (m *UserMentionEntity) GetScreenName() string
- func (*UserMentionEntity) ProtoMessage()
- func (m *UserMentionEntity) Reset()
- func (m *UserMentionEntity) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTwitterServer ¶
func RegisterTwitterServer(s *grpc.Server, srv TwitterServer)
Types ¶
type Entities ¶
type Entities struct { UserMentions []*UserMentionEntity `protobuf:"bytes,2,rep,name=user_mentions,json=userMentions" json:"user_mentions,omitempty"` }
NB: This is a SELECTION of data, not the complete offering.
func (*Entities) Descriptor ¶
func (*Entities) GetHashtags ¶
func (m *Entities) GetHashtags() []*HashtagEntity
func (*Entities) GetUserMentions ¶
func (m *Entities) GetUserMentions() []*UserMentionEntity
func (*Entities) ProtoMessage ¶
func (*Entities) ProtoMessage()
type HashtagEntity ¶
type HashtagEntity struct { Indicies []int32 `protobuf:"varint,1,rep,packed,name=indicies" json:"indicies,omitempty"` Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"` }
func (*HashtagEntity) Descriptor ¶
func (*HashtagEntity) Descriptor() ([]byte, []int)
func (*HashtagEntity) GetIndicies ¶
func (m *HashtagEntity) GetIndicies() []int32
func (*HashtagEntity) GetText ¶
func (m *HashtagEntity) GetText() string
func (*HashtagEntity) ProtoMessage ¶
func (*HashtagEntity) ProtoMessage()
func (*HashtagEntity) Reset ¶
func (m *HashtagEntity) Reset()
func (*HashtagEntity) String ¶
func (m *HashtagEntity) String() string
type Place ¶
type Place struct { Country string `protobuf:"bytes,1,opt,name=country" json:"country,omitempty"` CountryCode string `protobuf:"bytes,2,opt,name=country_code,json=countryCode" json:"country_code,omitempty"` FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName" json:"full_name,omitempty"` Id string `protobuf:"bytes,4,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,5,opt,name=name" json:"name,omitempty"` PlaceType string `protobuf:"bytes,6,opt,name=place_type,json=placeType" json:"place_type,omitempty"` }
NB: This is a SELECTION of data, not the complete offering.
func (*Place) Descriptor ¶
func (*Place) GetCountry ¶
func (*Place) GetCountryCode ¶
func (*Place) GetFullName ¶
func (*Place) GetPlaceType ¶
func (*Place) ProtoMessage ¶
func (*Place) ProtoMessage()
type SearchTweetsArgs ¶
type SearchTweetsArgs struct { // @inject_tag: url:"q,omitempty" Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty" url:"q,omitempty"` // @inject_tag: url:"geocode,omitempty" Geocode string `protobuf:"bytes,2,opt,name=geocode" json:"geocode,omitempty" url:"geocode,omitempty"` // @inject_tag: url:"lang,omitempty" Lang string `protobuf:"bytes,3,opt,name=lang" json:"lang,omitempty" url:"lang,omitempty"` // @inject_tag: url:"locale,omitempty" Locale string `protobuf:"bytes,4,opt,name=locale" json:"locale,omitempty" url:"locale,omitempty"` // @inject_tag: url:"result_type,omitempty" ResultType string `protobuf:"bytes,5,opt,name=result_type,json=resultType" json:"result_type,omitempty" url:"result_type,omitempty"` // @inject_tag: url:"count,omitempty" Count int32 `protobuf:"varint,6,opt,name=count" json:"count,omitempty" url:"count,omitempty"` // @inject_tag: url:"since,omitempty" Since string `protobuf:"bytes,7,opt,name=since" json:"since,omitempty" url:"since,omitempty"` // @inject_tag: url:"since_id,omitempty" SinceId int64 `protobuf:"varint,8,opt,name=since_id,json=sinceId" json:"since_id,omitempty" url:"since_id,omitempty"` // @inject_tag: url:"max_id,omitempty" MaxId int64 `protobuf:"varint,9,opt,name=max_id,json=maxId" json:"max_id,omitempty" url:"max_id,omitempty"` // @inject_tag: url:"include_entities,omitempty" IncludeEntities bool `` /* 134-byte string literal not displayed */ }
=REST API Tweet Search request parameters defn DETAILS(https://dev.twitter.com/rest/reference/get/search/tweets)
>query A UTF-8, URL-encoded search query of 500 characters maximum, including operators. @noradio
>geocode Returns tweets by users located within a given radius of the given latitude/longitude. The location is preferentially taking from the Geotagging API, but will fall back to their Twitter profile. The parameter value is specified by ” latitude,longitude,radius ”, where radius units must be specified as either ” mi ” (miles) or ” km ” (kilometers). 37.781157 -122.398720 1mi
>lang Restricts tweets to the given language, given by an ISO 639-1 code. Language detection is best-effort.
>locale Specify the language of the query you are sending (only ja is currently effective)
>result_type Optional. Specifies what type of search results you would prefer to receive. The current default is “mixed.” Valid values include: mixed : Include both popular and real time results in the response. recent : return only the most recent results in the response. popular : return only the most popular results in the response.
>count The number of tweets to return per page, up to a maximum of 100. Defaults to 15.
>since Returns tweets created before the given date. Date should be formatted as YYYY-MM-DD. Keep in mind that the search index has a 7-day limit. In other words, no tweets will be found for a date older than one week.
>since_id Returns results with an ID greater than (that is, more recent than) the specified ID. There are limits to the number of Tweets which can be accessed through the API. If the limit of Tweets has occurred since the since_id, the since_id will be forced to the oldest ID available.
>max_id Returns results with an ID less than (that is, older than) or equal to the specified ID.
>include_entities The entities node will not be included when set to false.
func (*SearchTweetsArgs) Descriptor ¶
func (*SearchTweetsArgs) Descriptor() ([]byte, []int)
func (*SearchTweetsArgs) GetCount ¶
func (m *SearchTweetsArgs) GetCount() int32
func (*SearchTweetsArgs) GetGeocode ¶
func (m *SearchTweetsArgs) GetGeocode() string
func (*SearchTweetsArgs) GetIncludeEntities ¶
func (m *SearchTweetsArgs) GetIncludeEntities() bool
func (*SearchTweetsArgs) GetLang ¶
func (m *SearchTweetsArgs) GetLang() string
func (*SearchTweetsArgs) GetLocale ¶
func (m *SearchTweetsArgs) GetLocale() string
func (*SearchTweetsArgs) GetMaxId ¶
func (m *SearchTweetsArgs) GetMaxId() int64
func (*SearchTweetsArgs) GetQuery ¶
func (m *SearchTweetsArgs) GetQuery() string
func (*SearchTweetsArgs) GetResultType ¶
func (m *SearchTweetsArgs) GetResultType() string
func (*SearchTweetsArgs) GetSince ¶
func (m *SearchTweetsArgs) GetSince() string
func (*SearchTweetsArgs) GetSinceId ¶
func (m *SearchTweetsArgs) GetSinceId() int64
func (*SearchTweetsArgs) ProtoMessage ¶
func (*SearchTweetsArgs) ProtoMessage()
func (*SearchTweetsArgs) Reset ¶
func (m *SearchTweetsArgs) Reset()
func (*SearchTweetsArgs) String ¶
func (m *SearchTweetsArgs) String() string
type SearchTweetsRet ¶
type SearchTweetsRet struct { SearchMetadata *SearchTweetsRet_SearchMetadata `protobuf:"bytes,1,opt,name=search_metadata,json=searchMetadata" json:"search_metadata,omitempty"` Statuses []*Tweet `protobuf:"bytes,2,rep,name=statuses" json:"statuses,omitempty"` }
func (*SearchTweetsRet) Descriptor ¶
func (*SearchTweetsRet) Descriptor() ([]byte, []int)
func (*SearchTweetsRet) GetSearchMetadata ¶
func (m *SearchTweetsRet) GetSearchMetadata() *SearchTweetsRet_SearchMetadata
func (*SearchTweetsRet) GetStatuses ¶
func (m *SearchTweetsRet) GetStatuses() []*Tweet
func (*SearchTweetsRet) ProtoMessage ¶
func (*SearchTweetsRet) ProtoMessage()
func (*SearchTweetsRet) Reset ¶
func (m *SearchTweetsRet) Reset()
func (*SearchTweetsRet) String ¶
func (m *SearchTweetsRet) String() string
type SearchTweetsRet_SearchMetadata ¶
type SearchTweetsRet_SearchMetadata struct { CompletedIn float64 `protobuf:"fixed64,1,opt,name=completed_in,json=completedIn" json:"completed_in,omitempty"` MaxId int64 `protobuf:"varint,2,opt,name=max_id,json=maxId" json:"max_id,omitempty"` Query string `protobuf:"bytes,3,opt,name=query" json:"query,omitempty"` Count int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"` SinceId int64 `protobuf:"varint,5,opt,name=since_id,json=sinceId" json:"since_id,omitempty"` }
func (*SearchTweetsRet_SearchMetadata) Descriptor ¶
func (*SearchTweetsRet_SearchMetadata) Descriptor() ([]byte, []int)
func (*SearchTweetsRet_SearchMetadata) GetCompletedIn ¶
func (m *SearchTweetsRet_SearchMetadata) GetCompletedIn() float64
func (*SearchTweetsRet_SearchMetadata) GetCount ¶
func (m *SearchTweetsRet_SearchMetadata) GetCount() int32
func (*SearchTweetsRet_SearchMetadata) GetMaxId ¶
func (m *SearchTweetsRet_SearchMetadata) GetMaxId() int64
func (*SearchTweetsRet_SearchMetadata) GetQuery ¶
func (m *SearchTweetsRet_SearchMetadata) GetQuery() string
func (*SearchTweetsRet_SearchMetadata) GetSinceId ¶
func (m *SearchTweetsRet_SearchMetadata) GetSinceId() int64
func (*SearchTweetsRet_SearchMetadata) ProtoMessage ¶
func (*SearchTweetsRet_SearchMetadata) ProtoMessage()
func (*SearchTweetsRet_SearchMetadata) Reset ¶
func (m *SearchTweetsRet_SearchMetadata) Reset()
func (*SearchTweetsRet_SearchMetadata) String ¶
func (m *SearchTweetsRet_SearchMetadata) String() string
type StreamTweetsArgs ¶
type StreamTweetsArgs struct { // @inject_tag: url:"filter_level,omitempty" FilterLevel string `protobuf:"bytes,1,opt,name=filter_level,json=filterLevel" json:"filter_level,omitempty" url:"filter_level,omitempty"` // @inject_tag: url:"stall_warnings,omitempty" StallWarnings bool `protobuf:"varint,2,opt,name=stall_warnings,json=stallWarnings" json:"stall_warnings,omitempty" url:"stall_warnings,omitempty"` // @inject_tag: url:"follow,omitempty,comma" Follow []string `protobuf:"bytes,3,rep,name=follow" json:"follow,omitempty" url:"follow,omitempty,comma"` // @inject_tag: url:"track,omitempty,comma" Track []string `protobuf:"bytes,4,rep,name=track" json:"track,omitempty" url:"track,omitempty,comma"` // @inject_tag: url:"language,omitempty,comma" Language []string `protobuf:"bytes,5,rep,name=language" json:"language,omitempty" url:"language,omitempty,comma"` // @inject_tag: url:"locations,omitempty,comma" Locations []string `protobuf:"bytes,6,rep,name=locations" json:"locations,omitempty" url:"locations,omitempty,comma"` }
func (*StreamTweetsArgs) Descriptor ¶
func (*StreamTweetsArgs) Descriptor() ([]byte, []int)
func (*StreamTweetsArgs) GetFilterLevel ¶
func (m *StreamTweetsArgs) GetFilterLevel() string
func (*StreamTweetsArgs) GetFollow ¶
func (m *StreamTweetsArgs) GetFollow() []string
func (*StreamTweetsArgs) GetLanguage ¶
func (m *StreamTweetsArgs) GetLanguage() []string
func (*StreamTweetsArgs) GetLocations ¶
func (m *StreamTweetsArgs) GetLocations() []string
func (*StreamTweetsArgs) GetStallWarnings ¶
func (m *StreamTweetsArgs) GetStallWarnings() bool
func (*StreamTweetsArgs) GetTrack ¶
func (m *StreamTweetsArgs) GetTrack() []string
func (*StreamTweetsArgs) ProtoMessage ¶
func (*StreamTweetsArgs) ProtoMessage()
func (*StreamTweetsArgs) Reset ¶
func (m *StreamTweetsArgs) Reset()
func (*StreamTweetsArgs) String ¶
func (m *StreamTweetsArgs) String() string
type StreamTweetsRet ¶
type StreamTweetsRet struct {
Status *Tweet `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
}
func (*StreamTweetsRet) Descriptor ¶
func (*StreamTweetsRet) Descriptor() ([]byte, []int)
func (*StreamTweetsRet) GetStatus ¶
func (m *StreamTweetsRet) GetStatus() *Tweet
func (*StreamTweetsRet) ProtoMessage ¶
func (*StreamTweetsRet) ProtoMessage()
func (*StreamTweetsRet) Reset ¶
func (m *StreamTweetsRet) Reset()
func (*StreamTweetsRet) String ¶
func (m *StreamTweetsRet) String() string
type Tweet ¶
type Tweet struct { CreatedAt string `protobuf:"bytes,1,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"` Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"` Truncated bool `protobuf:"varint,4,opt,name=truncated" json:"truncated,omitempty"` Entities *Entities `protobuf:"bytes,5,opt,name=entities" json:"entities,omitempty"` User *User `protobuf:"bytes,7,opt,name=user" json:"user,omitempty"` Coordinates *Tweet_Coordinates `protobuf:"bytes,8,opt,name=coordinates" json:"coordinates,omitempty"` Place *Place `protobuf:"bytes,9,opt,name=place" json:"place,omitempty"` RetweetCount int32 `protobuf:"varint,10,opt,name=retweet_count,json=retweetCount" json:"retweet_count,omitempty"` FavoriteCount int32 `protobuf:"varint,11,opt,name=favorite_count,json=favoriteCount" json:"favorite_count,omitempty"` Lang string `protobuf:"bytes,12,opt,name=lang" json:"lang,omitempty"` FilterLevel string `protobuf:"bytes,13,opt,name=filter_level,json=filterLevel" json:"filter_level,omitempty"` InReplyToScreenName string `protobuf:"bytes,14,opt,name=in_reply_to_screen_name,json=inReplyToScreenName" json:"in_reply_to_screen_name,omitempty"` InReplyToStatusId int64 `protobuf:"varint,15,opt,name=in_reply_to_status_id,json=inReplyToStatusId" json:"in_reply_to_status_id,omitempty"` InReplyToUserId int64 `protobuf:"varint,16,opt,name=in_reply_to_user_id,json=inReplyToUserId" json:"in_reply_to_user_id,omitempty"` QuotedStatusId int64 `protobuf:"varint,17,opt,name=quoted_status_id,json=quotedStatusId" json:"quoted_status_id,omitempty"` QuotedStatus *Tweet `protobuf:"bytes,18,opt,name=quoted_status,json=quotedStatus" json:"quoted_status,omitempty"` RetweetedStatus *Tweet `protobuf:"bytes,19,opt,name=retweeted_status,json=retweetedStatus" json:"retweeted_status,omitempty"` WithheldCopyright bool `protobuf:"varint,20,opt,name=withheld_copyright,json=withheldCopyright" json:"withheld_copyright,omitempty"` WithheldInCountries []string `protobuf:"bytes,21,rep,name=withheld_in_countries,json=withheldInCountries" json:"withheld_in_countries,omitempty"` WithheldScope string `protobuf:"bytes,22,opt,name=withheld_scope,json=withheldScope" json:"withheld_scope,omitempty"` }
NB: This is a SELECTION of data, not the complete offering.
func (*Tweet) Descriptor ¶
func (*Tweet) GetCoordinates ¶
func (m *Tweet) GetCoordinates() *Tweet_Coordinates
func (*Tweet) GetCreatedAt ¶
func (*Tweet) GetEntities ¶
func (*Tweet) GetFavoriteCount ¶
func (*Tweet) GetFilterLevel ¶
func (*Tweet) GetInReplyToScreenName ¶
func (*Tweet) GetInReplyToStatusId ¶
func (*Tweet) GetInReplyToUserId ¶
func (*Tweet) GetQuotedStatus ¶
func (*Tweet) GetQuotedStatusId ¶
func (*Tweet) GetRetweetCount ¶
func (*Tweet) GetRetweetedStatus ¶
func (*Tweet) GetTruncated ¶
func (*Tweet) GetWithheldCopyright ¶
func (*Tweet) GetWithheldInCountries ¶
func (*Tweet) GetWithheldScope ¶
func (*Tweet) ProtoMessage ¶
func (*Tweet) ProtoMessage()
type Tweet_Coordinates ¶
type Tweet_Coordinates struct { Coordinates []float64 `protobuf:"fixed64,1,rep,packed,name=coordinates" json:"coordinates,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` }
func (*Tweet_Coordinates) Descriptor ¶
func (*Tweet_Coordinates) Descriptor() ([]byte, []int)
func (*Tweet_Coordinates) GetCoordinates ¶
func (m *Tweet_Coordinates) GetCoordinates() []float64
func (*Tweet_Coordinates) GetType ¶
func (m *Tweet_Coordinates) GetType() string
func (*Tweet_Coordinates) ProtoMessage ¶
func (*Tweet_Coordinates) ProtoMessage()
func (*Tweet_Coordinates) Reset ¶
func (m *Tweet_Coordinates) Reset()
func (*Tweet_Coordinates) String ¶
func (m *Tweet_Coordinates) String() string
type TwitterClient ¶
type TwitterClient interface { // Query the Twitter Tweet Search REST API. // TODO(jv): Implement other REST endpoints as needed. SearchTweets(ctx context.Context, in *SearchTweetsArgs, opts ...grpc.CallOption) (*SearchTweetsRet, error) // Query the StreamService.Filter streaming API with the given parameters. StreamTweets(ctx context.Context, in *StreamTweetsArgs, opts ...grpc.CallOption) (Twitter_StreamTweetsClient, error) }
func NewTwitterClient ¶
func NewTwitterClient(cc *grpc.ClientConn) TwitterClient
type TwitterServer ¶
type TwitterServer interface { // Query the Twitter Tweet Search REST API. // TODO(jv): Implement other REST endpoints as needed. SearchTweets(context.Context, *SearchTweetsArgs) (*SearchTweetsRet, error) // Query the StreamService.Filter streaming API with the given parameters. StreamTweets(*StreamTweetsArgs, Twitter_StreamTweetsServer) error }
type Twitter_StreamTweetsClient ¶
type Twitter_StreamTweetsClient interface { Recv() (*StreamTweetsRet, error) grpc.ClientStream }
type Twitter_StreamTweetsServer ¶
type Twitter_StreamTweetsServer interface { Send(*StreamTweetsRet) error grpc.ServerStream }
type User ¶
type User struct { CreatedAt string `protobuf:"bytes,1,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` Entities *Entities `protobuf:"bytes,3,opt,name=entities" json:"entities,omitempty"` FavouritesCount int32 `protobuf:"varint,4,opt,name=favourites_count,json=favouritesCount" json:"favourites_count,omitempty"` FollowersCount int32 `protobuf:"varint,5,opt,name=followers_count,json=followersCount" json:"followers_count,omitempty"` FriendsCount int32 `protobuf:"varint,6,opt,name=friends_count,json=friendsCount" json:"friends_count,omitempty"` GeoEnabled bool `protobuf:"varint,7,opt,name=geo_enabled,json=geoEnabled" json:"geo_enabled,omitempty"` Id int64 `protobuf:"varint,8,opt,name=id" json:"id,omitempty"` Lang string `protobuf:"bytes,9,opt,name=lang" json:"lang,omitempty"` Location string `protobuf:"bytes,10,opt,name=location" json:"location,omitempty"` Name string `protobuf:"bytes,11,opt,name=name" json:"name,omitempty"` Protected bool `protobuf:"varint,12,opt,name=protected" json:"protected,omitempty"` ScreenName string `protobuf:"bytes,13,opt,name=screen_name,json=screenName" json:"screen_name,omitempty"` StatusesCount int32 `protobuf:"varint,14,opt,name=statuses_count,json=statusesCount" json:"statuses_count,omitempty"` Timezone string `protobuf:"bytes,15,opt,name=timezone" json:"timezone,omitempty"` UtcOffset int32 `protobuf:"varint,16,opt,name=utc_offset,json=utcOffset" json:"utc_offset,omitempty"` Verified bool `protobuf:"varint,17,opt,name=verified" json:"verified,omitempty"` WithheldInCounties string `protobuf:"bytes,18,opt,name=withheld_in_counties,json=withheldInCounties" json:"withheld_in_counties,omitempty"` WithheldScope string `protobuf:"bytes,19,opt,name=withheld_scope,json=withheldScope" json:"withheld_scope,omitempty"` }
NB: This is a SELECTION of data, not the complete offering.
func (*User) Descriptor ¶
func (*User) GetCreatedAt ¶
func (*User) GetDescription ¶
func (*User) GetEntities ¶
func (*User) GetFavouritesCount ¶
func (*User) GetFollowersCount ¶
func (*User) GetFriendsCount ¶
func (*User) GetGeoEnabled ¶
func (*User) GetLocation ¶
func (*User) GetProtected ¶
func (*User) GetScreenName ¶
func (*User) GetStatusesCount ¶
func (*User) GetTimezone ¶
func (*User) GetUtcOffset ¶
func (*User) GetVerified ¶
func (*User) GetWithheldInCounties ¶
func (*User) GetWithheldScope ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
type UserMentionEntity ¶
type UserMentionEntity struct { Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Indicies []int32 `protobuf:"varint,2,rep,packed,name=indicies" json:"indicies,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` ScreenName string `protobuf:"bytes,4,opt,name=screen_name,json=screenName" json:"screen_name,omitempty"` }
func (*UserMentionEntity) Descriptor ¶
func (*UserMentionEntity) Descriptor() ([]byte, []int)
func (*UserMentionEntity) GetId ¶
func (m *UserMentionEntity) GetId() int64
func (*UserMentionEntity) GetIndicies ¶
func (m *UserMentionEntity) GetIndicies() []int32
func (*UserMentionEntity) GetName ¶
func (m *UserMentionEntity) GetName() string
func (*UserMentionEntity) GetScreenName ¶
func (m *UserMentionEntity) GetScreenName() string
func (*UserMentionEntity) ProtoMessage ¶
func (*UserMentionEntity) ProtoMessage()
func (*UserMentionEntity) Reset ¶
func (m *UserMentionEntity) Reset()
func (*UserMentionEntity) String ¶
func (m *UserMentionEntity) String() string