Versions in this module Expand all Collapse all v1 v1.6.0 Jun 20, 2023 v1.5.0 May 14, 2023 v1.4.1 Dec 14, 2022 v1.4.0 Oct 24, 2022 v1.3.0 Sep 27, 2022 v1.2.0 Aug 31, 2022 v1.1.0 Aug 14, 2022 v1.0.0 Jul 16, 2022 v0 v0.27.0 May 30, 2022 v0.26.0 Apr 5, 2022 v0.25.0 Feb 16, 2022 v0.24.0 Jan 14, 2022 v0.23.0 Nov 22, 2021 v0.22.0 Nov 11, 2021 v0.21.0 Oct 27, 2021 v0.20.0 Sep 24, 2021 Changes in this version + var File_proto_twitter_proto protoreflect.FileDescriptor + func NewTwitterEndpoints() []*api.Endpoint + func RegisterTwitterHandler(s server.Server, hdlr TwitterHandler, opts ...server.HandlerOption) error + type Profile struct + CreatedAt string + Description string + Followers int64 + Id int64 + ImageUrl string + Location string + Name string + Private bool + Username string + Verified bool + func (*Profile) Descriptor() ([]byte, []int) + func (*Profile) ProtoMessage() + func (x *Profile) GetCreatedAt() string + func (x *Profile) GetDescription() string + func (x *Profile) GetFollowers() int64 + func (x *Profile) GetId() int64 + func (x *Profile) GetImageUrl() string + func (x *Profile) GetLocation() string + func (x *Profile) GetName() string + func (x *Profile) GetPrivate() bool + func (x *Profile) GetUsername() string + func (x *Profile) GetVerified() bool + func (x *Profile) ProtoReflect() protoreflect.Message + func (x *Profile) Reset() + func (x *Profile) String() string + type SearchRequest struct + Limit int32 + Query string + func (*SearchRequest) Descriptor() ([]byte, []int) + func (*SearchRequest) ProtoMessage() + func (x *SearchRequest) GetLimit() int32 + func (x *SearchRequest) GetQuery() string + func (x *SearchRequest) ProtoReflect() protoreflect.Message + func (x *SearchRequest) Reset() + func (x *SearchRequest) String() string + type SearchResponse struct + Tweets []*Tweet + func (*SearchResponse) Descriptor() ([]byte, []int) + func (*SearchResponse) ProtoMessage() + func (x *SearchResponse) GetTweets() []*Tweet + func (x *SearchResponse) ProtoReflect() protoreflect.Message + func (x *SearchResponse) Reset() + func (x *SearchResponse) String() string + type TimelineRequest struct + Limit int32 + Username string + func (*TimelineRequest) Descriptor() ([]byte, []int) + func (*TimelineRequest) ProtoMessage() + func (x *TimelineRequest) GetLimit() int32 + func (x *TimelineRequest) GetUsername() string + func (x *TimelineRequest) ProtoReflect() protoreflect.Message + func (x *TimelineRequest) Reset() + func (x *TimelineRequest) String() string + type TimelineResponse struct + Tweets []*Tweet + func (*TimelineResponse) Descriptor() ([]byte, []int) + func (*TimelineResponse) ProtoMessage() + func (x *TimelineResponse) GetTweets() []*Tweet + func (x *TimelineResponse) ProtoReflect() protoreflect.Message + func (x *TimelineResponse) Reset() + func (x *TimelineResponse) String() string + type Trend struct + Name string + TweetVolume int64 + Url string + func (*Trend) Descriptor() ([]byte, []int) + func (*Trend) ProtoMessage() + func (x *Trend) GetName() string + func (x *Trend) GetTweetVolume() int64 + func (x *Trend) GetUrl() string + func (x *Trend) ProtoReflect() protoreflect.Message + func (x *Trend) Reset() + func (x *Trend) String() string + type TrendsRequest struct + func (*TrendsRequest) Descriptor() ([]byte, []int) + func (*TrendsRequest) ProtoMessage() + func (x *TrendsRequest) ProtoReflect() protoreflect.Message + func (x *TrendsRequest) Reset() + func (x *TrendsRequest) String() string + type TrendsResponse struct + Trends []*Trend + func (*TrendsResponse) Descriptor() ([]byte, []int) + func (*TrendsResponse) ProtoMessage() + func (x *TrendsResponse) GetTrends() []*Trend + func (x *TrendsResponse) ProtoReflect() protoreflect.Message + func (x *TrendsResponse) Reset() + func (x *TrendsResponse) String() string + type Tweet struct + CreatedAt string + FavouritedCount int64 + Id int64 + RetweetedCount int64 + Text string + Username string + func (*Tweet) Descriptor() ([]byte, []int) + func (*Tweet) ProtoMessage() + func (x *Tweet) GetCreatedAt() string + func (x *Tweet) GetFavouritedCount() int64 + func (x *Tweet) GetId() int64 + func (x *Tweet) GetRetweetedCount() int64 + func (x *Tweet) GetText() string + func (x *Tweet) GetUsername() string + func (x *Tweet) ProtoReflect() protoreflect.Message + func (x *Tweet) Reset() + func (x *Tweet) String() string + type TwitterHandler interface + Search func(context.Context, *SearchRequest, *SearchResponse) error + Timeline func(context.Context, *TimelineRequest, *TimelineResponse) error + Trends func(context.Context, *TrendsRequest, *TrendsResponse) error + User func(context.Context, *UserRequest, *UserResponse) error + type TwitterService interface + Search func(ctx context.Context, in *SearchRequest, opts ...client.CallOption) (*SearchResponse, error) + Timeline func(ctx context.Context, in *TimelineRequest, opts ...client.CallOption) (*TimelineResponse, error) + Trends func(ctx context.Context, in *TrendsRequest, opts ...client.CallOption) (*TrendsResponse, error) + User func(ctx context.Context, in *UserRequest, opts ...client.CallOption) (*UserResponse, error) + func NewTwitterService(name string, c client.Client) TwitterService + type UserRequest struct + Username string + func (*UserRequest) Descriptor() ([]byte, []int) + func (*UserRequest) ProtoMessage() + func (x *UserRequest) GetUsername() string + func (x *UserRequest) ProtoReflect() protoreflect.Message + func (x *UserRequest) Reset() + func (x *UserRequest) String() string + type UserResponse struct + Profile *Profile + Status *Tweet + func (*UserResponse) Descriptor() ([]byte, []int) + func (*UserResponse) ProtoMessage() + func (x *UserResponse) GetProfile() *Profile + func (x *UserResponse) GetStatus() *Tweet + func (x *UserResponse) ProtoReflect() protoreflect.Message + func (x *UserResponse) Reset() + func (x *UserResponse) String() string