Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- func RegisterPodServer(s *grpc.Server, srv PodServer)
- type AuthClient
- type AuthReq
- func (*AuthReq) Descriptor() ([]byte, []int)deprecated
- func (x *AuthReq) GetPassword() string
- func (x *AuthReq) GetSessionKey() string
- func (x *AuthReq) GetStayLoggedIn() bool
- func (x *AuthReq) GetUserAgent() string
- func (x *AuthReq) GetUsername() string
- func (*AuthReq) ProtoMessage()
- func (x *AuthReq) ProtoReflect() protoreflect.Message
- func (x *AuthReq) Reset()
- func (x *AuthReq) String() string
- type AuthRes
- func (*AuthRes) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRes) GetMessage() string
- func (x *AuthRes) GetSessionKey() string
- func (x *AuthRes) GetSuccess() bool
- func (x *AuthRes) GetUser() *User
- func (*AuthRes) ProtoMessage()
- func (x *AuthRes) ProtoReflect() protoreflect.Message
- func (x *AuthRes) Reset()
- func (x *AuthRes) String() string
- type AuthServer
- type Category
- type Episode
- func (*Episode) Descriptor() ([]byte, []int)deprecated
- func (x *Episode) GetAuthor() string
- func (x *Episode) GetCategory() []*Category
- func (x *Episode) GetDescription() string
- func (x *Episode) GetDurationMillis() int64
- func (x *Episode) GetEpisode() int32
- func (x *Episode) GetExplicit() string
- func (x *Episode) GetId() *ObjectID
- func (x *Episode) GetImage() *Image
- func (x *Episode) GetMP3URL() string
- func (x *Episode) GetPodcastID() *ObjectID
- func (x *Episode) GetPubDate() *timestamp.Timestamp
- func (x *Episode) GetSeason() int32
- func (x *Episode) GetSubtitle() string
- func (x *Episode) GetSummary() string
- func (x *Episode) GetTitle() string
- func (x *Episode) GetType() string
- func (*Episode) ProtoMessage()
- func (x *Episode) ProtoReflect() protoreflect.Message
- func (x *Episode) Reset()
- func (x *Episode) String() string
- type Episodes
- type Image
- type LastPlayedRes
- func (*LastPlayedRes) Descriptor() ([]byte, []int)deprecated
- func (x *LastPlayedRes) GetEpisode() *Episode
- func (x *LastPlayedRes) GetMillis() int64
- func (x *LastPlayedRes) GetPodcast() *Podcast
- func (*LastPlayedRes) ProtoMessage()
- func (x *LastPlayedRes) ProtoReflect() protoreflect.Message
- func (x *LastPlayedRes) Reset()
- func (x *LastPlayedRes) String() string
- type ObjectID
- type PodClient
- type PodServer
- type Podcast
- func (*Podcast) Descriptor() ([]byte, []int)deprecated
- func (x *Podcast) GetAuthor() string
- func (x *Podcast) GetCategory() []*Category
- func (x *Podcast) GetExplicit() string
- func (x *Podcast) GetId() *ObjectID
- func (x *Podcast) GetImage() *Image
- func (x *Podcast) GetKeywords() []string
- func (x *Podcast) GetLanguage() string
- func (x *Podcast) GetLastBuildDate() *timestamp.Timestamp
- func (x *Podcast) GetLink() string
- func (x *Podcast) GetPubDate() *timestamp.Timestamp
- func (x *Podcast) GetRss() string
- func (x *Podcast) GetSubtitle() string
- func (x *Podcast) GetTitle() string
- func (x *Podcast) GetType() string
- func (*Podcast) ProtoMessage()
- func (x *Podcast) ProtoReflect() protoreflect.Message
- func (x *Podcast) Reset()
- func (x *Podcast) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetEnd() int64
- func (x *Request) GetEpisodeID() *ObjectID
- func (x *Request) GetPodcastID() *ObjectID
- func (x *Request) GetStart() int64
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- type Session
- func (*Session) Descriptor() ([]byte, []int)deprecated
- func (x *Session) GetExpires() *timestamp.Timestamp
- func (x *Session) GetId() *ObjectID
- func (x *Session) GetLastSeenTime() *timestamp.Timestamp
- func (x *Session) GetLoginTime() *timestamp.Timestamp
- func (x *Session) GetSessionKey() string
- func (x *Session) GetUserAgent() string
- func (x *Session) GetUserID() *ObjectID
- func (*Session) ProtoMessage()
- func (x *Session) ProtoReflect() protoreflect.Message
- func (x *Session) Reset()
- func (x *Session) String() string
- type Subscription
- func (*Subscription) Descriptor() ([]byte, []int)deprecated
- func (x *Subscription) GetCompletedIDs() []*ObjectID
- func (x *Subscription) GetId() *ObjectID
- func (x *Subscription) GetInProgressIDs() []*ObjectID
- func (x *Subscription) GetPodcastID() *ObjectID
- func (x *Subscription) GetUserID() *ObjectID
- func (*Subscription) ProtoMessage()
- func (x *Subscription) ProtoReflect() protoreflect.Message
- func (x *Subscription) Reset()
- func (x *Subscription) String() string
- type Subscriptions
- func (*Subscriptions) Descriptor() ([]byte, []int)deprecated
- func (x *Subscriptions) GetPodcasts() []*Podcast
- func (x *Subscriptions) GetSubscriptions() []*Subscription
- func (*Subscriptions) ProtoMessage()
- func (x *Subscriptions) ProtoReflect() protoreflect.Message
- func (x *Subscriptions) Reset()
- func (x *Subscriptions) String() string
- type UnimplementedAuthServer
- type UnimplementedPodServer
- func (UnimplementedPodServer) GetEpisodes(context.Context, *Request) (*Episodes, error)
- func (UnimplementedPodServer) GetPodcast(context.Context, *Request) (*Podcast, error)
- func (UnimplementedPodServer) GetSubscriptions(context.Context, *Request) (*Subscriptions, error)
- func (UnimplementedPodServer) GetUserEpisode(context.Context, *Request) (*UserEpisode, error)
- func (UnimplementedPodServer) GetUserLastPlayed(context.Context, *Request) (*LastPlayedRes, error)
- func (UnimplementedPodServer) UpdateUserEpisode(context.Context, *UserEpisodeReq) (*Response, error)
- type UnsafeAuthServer
- type UnsafePodServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetDOB() *timestamp.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetId() *ObjectID
- func (x *User) GetPassword() string
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserEpisode
- func (*UserEpisode) Descriptor() ([]byte, []int)deprecated
- func (x *UserEpisode) GetEpisodeID() *ObjectID
- func (x *UserEpisode) GetId() *ObjectID
- func (x *UserEpisode) GetLastSeen() *timestamp.Timestamp
- func (x *UserEpisode) GetOffset() int64
- func (x *UserEpisode) GetPlayed() bool
- func (x *UserEpisode) GetPodcastID() *ObjectID
- func (x *UserEpisode) GetUserID() *ObjectID
- func (*UserEpisode) ProtoMessage()
- func (x *UserEpisode) ProtoReflect() protoreflect.Message
- func (x *UserEpisode) Reset()
- func (x *UserEpisode) String() string
- type UserEpisodeReq
- func (*UserEpisodeReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserEpisodeReq) GetEpisodeID() *ObjectID
- func (x *UserEpisodeReq) GetLastSeen() *timestamp.Timestamp
- func (x *UserEpisodeReq) GetOffset() int64
- func (x *UserEpisodeReq) GetPlayed() bool
- func (x *UserEpisodeReq) GetPodcastID() *ObjectID
- func (*UserEpisodeReq) ProtoMessage()
- func (x *UserEpisodeReq) ProtoReflect() protoreflect.Message
- func (x *UserEpisodeReq) Reset()
- func (x *UserEpisodeReq) String() string
Constants ¶
This section is empty.
Variables ¶
var File_auth_proto protoreflect.FileDescriptor
var File_objectID_proto protoreflect.FileDescriptor
var File_podcast_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
func RegisterPodServer ¶
Types ¶
type AuthClient ¶
type AuthClient interface { Authenticate(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthRes, error) Authorize(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthRes, error) Logout(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*AuthRes, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthReq ¶
type AuthReq struct { // used for Authentication Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` StayLoggedIn bool `protobuf:"varint,5,opt,name=stayLoggedIn,proto3" json:"stayLoggedIn,omitempty"` // used only for Authoriation SessionKey string `protobuf:"bytes,3,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` UserAgent string `protobuf:"bytes,4,opt,name=userAgent,proto3" json:"userAgent,omitempty"` // contains filtered or unexported fields }
func (*AuthReq) Descriptor
deprecated
func (*AuthReq) GetPassword ¶
func (*AuthReq) GetSessionKey ¶
func (*AuthReq) GetStayLoggedIn ¶
func (*AuthReq) GetUserAgent ¶
func (*AuthReq) GetUsername ¶
func (*AuthReq) ProtoMessage ¶
func (*AuthReq) ProtoMessage()
func (*AuthReq) ProtoReflect ¶
func (x *AuthReq) ProtoReflect() protoreflect.Message
type AuthRes ¶
type AuthRes struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // only used with authentication SessionKey string `protobuf:"bytes,2,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` User *User `protobuf:"bytes,15,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
AuthRes contains the status of the request success == true : session key and user data will be populated
func (*AuthRes) Descriptor
deprecated
func (*AuthRes) GetMessage ¶
func (*AuthRes) GetSessionKey ¶
func (*AuthRes) GetSuccess ¶
func (*AuthRes) ProtoMessage ¶
func (*AuthRes) ProtoMessage()
func (*AuthRes) ProtoReflect ¶
func (x *AuthRes) ProtoReflect() protoreflect.Message
type AuthServer ¶
type AuthServer interface { Authenticate(context.Context, *AuthReq) (*AuthRes, error) Authorize(context.Context, *AuthReq) (*AuthRes, error) Logout(context.Context, *AuthReq) (*AuthRes, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type Category ¶
type Category struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Category []*Category `protobuf:"bytes,2,rep,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetCategory ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type Episode ¶
type Episode struct { Id *ObjectID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` PodcastID *ObjectID `protobuf:"bytes,2,opt,name=podcastID,proto3" json:"podcastID,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Author string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` Image *Image `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"` PubDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=pubDate,proto3" json:"pubDate,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` Summary string `protobuf:"bytes,9,opt,name=summary,proto3" json:"summary,omitempty"` Season int32 `protobuf:"varint,10,opt,name=season,proto3" json:"season,omitempty"` Episode int32 `protobuf:"varint,11,opt,name=episode,proto3" json:"episode,omitempty"` Category []*Category `protobuf:"bytes,12,rep,name=category,proto3" json:"category,omitempty"` Explicit string `protobuf:"bytes,13,opt,name=explicit,proto3" json:"explicit,omitempty"` MP3URL string `protobuf:"bytes,14,opt,name=MP3URL,proto3" json:"MP3URL,omitempty"` DurationMillis int64 `protobuf:"varint,15,opt,name=durationMillis,proto3" json:"durationMillis,omitempty"` Subtitle string `protobuf:"bytes,16,opt,name=subtitle,proto3" json:"subtitle,omitempty"` // contains filtered or unexported fields }
func (*Episode) Descriptor
deprecated
func (*Episode) GetCategory ¶
func (*Episode) GetDescription ¶
func (*Episode) GetDurationMillis ¶
func (*Episode) GetEpisode ¶
func (*Episode) GetExplicit ¶
func (*Episode) GetPodcastID ¶
func (*Episode) GetPubDate ¶
func (*Episode) GetSubtitle ¶
func (*Episode) GetSummary ¶
func (*Episode) ProtoMessage ¶
func (*Episode) ProtoMessage()
func (*Episode) ProtoReflect ¶
func (x *Episode) ProtoReflect() protoreflect.Message
type Episodes ¶
type Episodes struct { Episodes []*Episode `protobuf:"bytes,1,rep,name=episodes,proto3" json:"episodes,omitempty"` // contains filtered or unexported fields }
func (*Episodes) Descriptor
deprecated
func (*Episodes) GetEpisodes ¶
func (*Episodes) ProtoMessage ¶
func (*Episodes) ProtoMessage()
func (*Episodes) ProtoReflect ¶
func (x *Episodes) ProtoReflect() protoreflect.Message
type Image ¶
type Image struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type LastPlayedRes ¶
type LastPlayedRes struct { Podcast *Podcast `protobuf:"bytes,1,opt,name=podcast,proto3" json:"podcast,omitempty"` Episode *Episode `protobuf:"bytes,2,opt,name=episode,proto3" json:"episode,omitempty"` Millis int64 `protobuf:"varint,3,opt,name=millis,proto3" json:"millis,omitempty"` // contains filtered or unexported fields }
func (*LastPlayedRes) Descriptor
deprecated
func (*LastPlayedRes) Descriptor() ([]byte, []int)
Deprecated: Use LastPlayedRes.ProtoReflect.Descriptor instead.
func (*LastPlayedRes) GetEpisode ¶
func (x *LastPlayedRes) GetEpisode() *Episode
func (*LastPlayedRes) GetMillis ¶
func (x *LastPlayedRes) GetMillis() int64
func (*LastPlayedRes) GetPodcast ¶
func (x *LastPlayedRes) GetPodcast() *Podcast
func (*LastPlayedRes) ProtoMessage ¶
func (*LastPlayedRes) ProtoMessage()
func (*LastPlayedRes) ProtoReflect ¶
func (x *LastPlayedRes) ProtoReflect() protoreflect.Message
func (*LastPlayedRes) Reset ¶
func (x *LastPlayedRes) Reset()
func (*LastPlayedRes) String ¶
func (x *LastPlayedRes) String() string
type ObjectID ¶
type ObjectID struct { Hex string `protobuf:"bytes,1,opt,name=hex,proto3" json:"hex,omitempty"` // contains filtered or unexported fields }
func NewObjectID ¶
func NewObjectID() *ObjectID
NewObjectID generates a new ObjectID based on the mongodb primitive package
func ObjectIDFromHex ¶
ObjectIDFromHex takes the hex and wraps it in a ObjectID struct
func (*ObjectID) Descriptor
deprecated
func (*ObjectID) ProtoMessage ¶
func (*ObjectID) ProtoMessage()
func (*ObjectID) ProtoReflect ¶
func (x *ObjectID) ProtoReflect() protoreflect.Message
type PodClient ¶
type PodClient interface { GetPodcast(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Podcast, error) GetEpisodes(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Episodes, error) GetUserEpisode(ctx context.Context, in *Request, opts ...grpc.CallOption) (*UserEpisode, error) UpdateUserEpisode(ctx context.Context, in *UserEpisodeReq, opts ...grpc.CallOption) (*Response, error) GetSubscriptions(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Subscriptions, error) GetUserLastPlayed(ctx context.Context, in *Request, opts ...grpc.CallOption) (*LastPlayedRes, error) }
PodClient is the client API for Pod service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPodClient ¶
func NewPodClient(cc grpc.ClientConnInterface) PodClient
type PodServer ¶
type PodServer interface { GetPodcast(context.Context, *Request) (*Podcast, error) GetEpisodes(context.Context, *Request) (*Episodes, error) GetUserEpisode(context.Context, *Request) (*UserEpisode, error) UpdateUserEpisode(context.Context, *UserEpisodeReq) (*Response, error) GetSubscriptions(context.Context, *Request) (*Subscriptions, error) GetUserLastPlayed(context.Context, *Request) (*LastPlayedRes, error) // contains filtered or unexported methods }
PodServer is the server API for Pod service. All implementations must embed UnimplementedPodServer for forward compatibility
type Podcast ¶
type Podcast struct { Id *ObjectID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` Subtitle string `protobuf:"bytes,5,opt,name=subtitle,proto3" json:"subtitle,omitempty"` Link string `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"` Image *Image `protobuf:"bytes,7,opt,name=image,proto3" json:"image,omitempty"` Explicit string `protobuf:"bytes,8,opt,name=explicit,proto3" json:"explicit,omitempty"` Language string `protobuf:"bytes,9,opt,name=language,proto3" json:"language,omitempty"` Keywords []string `protobuf:"bytes,10,rep,name=Keywords,proto3" json:"Keywords,omitempty"` Category []*Category `protobuf:"bytes,11,rep,name=category,proto3" json:"category,omitempty"` PubDate *timestamp.Timestamp `protobuf:"bytes,12,opt,name=pubDate,proto3" json:"pubDate,omitempty"` LastBuildDate *timestamp.Timestamp `protobuf:"bytes,13,opt,name=lastBuildDate,proto3" json:"lastBuildDate,omitempty"` Rss string `protobuf:"bytes,14,opt,name=rss,proto3" json:"rss,omitempty"` // contains filtered or unexported fields }
func (*Podcast) Descriptor
deprecated
func (*Podcast) GetCategory ¶
func (*Podcast) GetExplicit ¶
func (*Podcast) GetKeywords ¶
func (*Podcast) GetLanguage ¶
func (*Podcast) GetLastBuildDate ¶
func (*Podcast) GetPubDate ¶
func (*Podcast) GetSubtitle ¶
func (*Podcast) ProtoMessage ¶
func (*Podcast) ProtoMessage()
func (*Podcast) ProtoReflect ¶
func (x *Podcast) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { //string token = 1; PodcastID *ObjectID `protobuf:"bytes,2,opt,name=podcastID,proto3" json:"podcastID,omitempty"` EpisodeID *ObjectID `protobuf:"bytes,3,opt,name=episodeID,proto3" json:"episodeID,omitempty"` Start int64 `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,5,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
start & end represen the amount of episodes to return
func (*Request) Descriptor
deprecated
func (*Request) GetEpisodeID ¶
func (*Request) GetPodcastID ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) GetSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Session ¶
type Session struct { Id *ObjectID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` UserID *ObjectID `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"` SessionKey string `protobuf:"bytes,3,opt,name=sessionKey,proto3" json:"sessionKey,omitempty"` LoginTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=loginTime,proto3" json:"loginTime,omitempty"` LastSeenTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=lastSeenTime,proto3" json:"lastSeenTime,omitempty"` Expires *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expires,proto3" json:"expires,omitempty"` UserAgent string `protobuf:"bytes,7,opt,name=userAgent,proto3" json:"userAgent,omitempty"` // contains filtered or unexported fields }
func (*Session) Descriptor
deprecated
func (*Session) GetExpires ¶
func (*Session) GetLastSeenTime ¶
func (*Session) GetLoginTime ¶
func (*Session) GetSessionKey ¶
func (*Session) GetUserAgent ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) ProtoReflect ¶
func (x *Session) ProtoReflect() protoreflect.Message
type Subscription ¶
type Subscription struct { Id *ObjectID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` UserID *ObjectID `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"` PodcastID *ObjectID `protobuf:"bytes,3,opt,name=podcastID,proto3" json:"podcastID,omitempty"` CompletedIDs []*ObjectID `protobuf:"bytes,4,rep,name=completedIDs,proto3" json:"completedIDs,omitempty"` InProgressIDs []*ObjectID `protobuf:"bytes,5,rep,name=inProgressIDs,proto3" json:"inProgressIDs,omitempty"` // contains filtered or unexported fields }
func (*Subscription) Descriptor
deprecated
func (*Subscription) Descriptor() ([]byte, []int)
Deprecated: Use Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) GetCompletedIDs ¶
func (x *Subscription) GetCompletedIDs() []*ObjectID
func (*Subscription) GetId ¶
func (x *Subscription) GetId() *ObjectID
func (*Subscription) GetInProgressIDs ¶
func (x *Subscription) GetInProgressIDs() []*ObjectID
func (*Subscription) GetPodcastID ¶
func (x *Subscription) GetPodcastID() *ObjectID
func (*Subscription) GetUserID ¶
func (x *Subscription) GetUserID() *ObjectID
func (*Subscription) ProtoMessage ¶
func (*Subscription) ProtoMessage()
func (*Subscription) ProtoReflect ¶
func (x *Subscription) ProtoReflect() protoreflect.Message
func (*Subscription) Reset ¶
func (x *Subscription) Reset()
func (*Subscription) String ¶
func (x *Subscription) String() string
type Subscriptions ¶
type Subscriptions struct { Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"` Podcasts []*Podcast `protobuf:"bytes,2,rep,name=podcasts,proto3" json:"podcasts,omitempty"` // contains filtered or unexported fields }
func (*Subscriptions) Descriptor
deprecated
func (*Subscriptions) Descriptor() ([]byte, []int)
Deprecated: Use Subscriptions.ProtoReflect.Descriptor instead.
func (*Subscriptions) GetPodcasts ¶
func (x *Subscriptions) GetPodcasts() []*Podcast
func (*Subscriptions) GetSubscriptions ¶
func (x *Subscriptions) GetSubscriptions() []*Subscription
func (*Subscriptions) ProtoMessage ¶
func (*Subscriptions) ProtoMessage()
func (*Subscriptions) ProtoReflect ¶
func (x *Subscriptions) ProtoReflect() protoreflect.Message
func (*Subscriptions) Reset ¶
func (x *Subscriptions) Reset()
func (*Subscriptions) String ¶
func (x *Subscriptions) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) Authenticate ¶
type UnimplementedPodServer ¶
type UnimplementedPodServer struct { }
UnimplementedPodServer must be embedded to have forward compatible implementations.
func (UnimplementedPodServer) GetEpisodes ¶
func (UnimplementedPodServer) GetPodcast ¶
func (UnimplementedPodServer) GetSubscriptions ¶
func (UnimplementedPodServer) GetSubscriptions(context.Context, *Request) (*Subscriptions, error)
func (UnimplementedPodServer) GetUserEpisode ¶
func (UnimplementedPodServer) GetUserEpisode(context.Context, *Request) (*UserEpisode, error)
func (UnimplementedPodServer) GetUserLastPlayed ¶
func (UnimplementedPodServer) GetUserLastPlayed(context.Context, *Request) (*LastPlayedRes, error)
func (UnimplementedPodServer) UpdateUserEpisode ¶
func (UnimplementedPodServer) UpdateUserEpisode(context.Context, *UserEpisodeReq) (*Response, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UnsafePodServer ¶
type UnsafePodServer interface {
// contains filtered or unexported methods
}
UnsafePodServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PodServer will result in compilation errors.
type User ¶
type User struct { Id *ObjectID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` DOB *timestamp.Timestamp `protobuf:"bytes,5,opt,name=DOB,proto3" json:"DOB,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetPassword ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserEpisode ¶
type UserEpisode struct { Id *ObjectID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id,omitempty"` UserID *ObjectID `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"` PodcastID *ObjectID `protobuf:"bytes,3,opt,name=podcastID,proto3" json:"podcastID,omitempty"` EpisodeID *ObjectID `protobuf:"bytes,4,opt,name=episodeID,proto3" json:"episodeID,omitempty"` Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` LastSeen *timestamp.Timestamp `protobuf:"bytes,6,opt,name=lastSeen,proto3" json:"lastSeen,omitempty"` Played bool `protobuf:"varint,7,opt,name=played,proto3" json:"played,omitempty"` // contains filtered or unexported fields }
func (*UserEpisode) Descriptor
deprecated
func (*UserEpisode) Descriptor() ([]byte, []int)
Deprecated: Use UserEpisode.ProtoReflect.Descriptor instead.
func (*UserEpisode) GetEpisodeID ¶
func (x *UserEpisode) GetEpisodeID() *ObjectID
func (*UserEpisode) GetId ¶
func (x *UserEpisode) GetId() *ObjectID
func (*UserEpisode) GetLastSeen ¶
func (x *UserEpisode) GetLastSeen() *timestamp.Timestamp
func (*UserEpisode) GetOffset ¶
func (x *UserEpisode) GetOffset() int64
func (*UserEpisode) GetPlayed ¶
func (x *UserEpisode) GetPlayed() bool
func (*UserEpisode) GetPodcastID ¶
func (x *UserEpisode) GetPodcastID() *ObjectID
func (*UserEpisode) GetUserID ¶
func (x *UserEpisode) GetUserID() *ObjectID
func (*UserEpisode) ProtoMessage ¶
func (*UserEpisode) ProtoMessage()
func (*UserEpisode) ProtoReflect ¶
func (x *UserEpisode) ProtoReflect() protoreflect.Message
func (*UserEpisode) Reset ¶
func (x *UserEpisode) Reset()
func (*UserEpisode) String ¶
func (x *UserEpisode) String() string
type UserEpisodeReq ¶
type UserEpisodeReq struct { //string token = 1; PodcastID *ObjectID `protobuf:"bytes,2,opt,name=podcastID,proto3" json:"podcastID,omitempty"` EpisodeID *ObjectID `protobuf:"bytes,3,opt,name=episodeID,proto3" json:"episodeID,omitempty"` Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` LastSeen *timestamp.Timestamp `protobuf:"bytes,5,opt,name=lastSeen,proto3" json:"lastSeen,omitempty"` Played bool `protobuf:"varint,6,opt,name=played,proto3" json:"played,omitempty"` // contains filtered or unexported fields }
func (*UserEpisodeReq) Descriptor
deprecated
func (*UserEpisodeReq) Descriptor() ([]byte, []int)
Deprecated: Use UserEpisodeReq.ProtoReflect.Descriptor instead.
func (*UserEpisodeReq) GetEpisodeID ¶
func (x *UserEpisodeReq) GetEpisodeID() *ObjectID
func (*UserEpisodeReq) GetLastSeen ¶
func (x *UserEpisodeReq) GetLastSeen() *timestamp.Timestamp
func (*UserEpisodeReq) GetOffset ¶
func (x *UserEpisodeReq) GetOffset() int64
func (*UserEpisodeReq) GetPlayed ¶
func (x *UserEpisodeReq) GetPlayed() bool
func (*UserEpisodeReq) GetPodcastID ¶
func (x *UserEpisodeReq) GetPodcastID() *ObjectID
func (*UserEpisodeReq) ProtoMessage ¶
func (*UserEpisodeReq) ProtoMessage()
func (*UserEpisodeReq) ProtoReflect ¶
func (x *UserEpisodeReq) ProtoReflect() protoreflect.Message
func (*UserEpisodeReq) Reset ¶
func (x *UserEpisodeReq) Reset()
func (*UserEpisodeReq) String ¶
func (x *UserEpisodeReq) String() string