protos

package
v0.0.0-...-97fc41f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_objectID_proto protoreflect.FileDescriptor
View Source
var File_podcast_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServer

func RegisterAuthServer(s *grpc.Server, srv AuthServer)

func RegisterPodServer

func RegisterPodServer(s *grpc.Server, srv PodServer)

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) Descriptor() ([]byte, []int)

Deprecated: Use AuthReq.ProtoReflect.Descriptor instead.

func (*AuthReq) GetPassword

func (x *AuthReq) GetPassword() string

func (*AuthReq) GetSessionKey

func (x *AuthReq) GetSessionKey() string

func (*AuthReq) GetStayLoggedIn

func (x *AuthReq) GetStayLoggedIn() bool

func (*AuthReq) GetUserAgent

func (x *AuthReq) GetUserAgent() string

func (*AuthReq) GetUsername

func (x *AuthReq) GetUsername() string

func (*AuthReq) ProtoMessage

func (*AuthReq) ProtoMessage()

func (*AuthReq) ProtoReflect

func (x *AuthReq) ProtoReflect() protoreflect.Message

func (*AuthReq) Reset

func (x *AuthReq) Reset()

func (*AuthReq) String

func (x *AuthReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use AuthRes.ProtoReflect.Descriptor instead.

func (*AuthRes) GetMessage

func (x *AuthRes) GetMessage() string

func (*AuthRes) GetSessionKey

func (x *AuthRes) GetSessionKey() string

func (*AuthRes) GetSuccess

func (x *AuthRes) GetSuccess() bool

func (*AuthRes) GetUser

func (x *AuthRes) GetUser() *User

func (*AuthRes) ProtoMessage

func (*AuthRes) ProtoMessage()

func (*AuthRes) ProtoReflect

func (x *AuthRes) ProtoReflect() protoreflect.Message

func (*AuthRes) Reset

func (x *AuthRes) Reset()

func (*AuthRes) String

func (x *AuthRes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetCategory

func (x *Category) GetCategory() []*Category

func (*Category) GetText

func (x *Category) GetText() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

func (x *Category) ProtoReflect() protoreflect.Message

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Episode.ProtoReflect.Descriptor instead.

func (*Episode) GetAuthor

func (x *Episode) GetAuthor() string

func (*Episode) GetCategory

func (x *Episode) GetCategory() []*Category

func (*Episode) GetDescription

func (x *Episode) GetDescription() string

func (*Episode) GetDurationMillis

func (x *Episode) GetDurationMillis() int64

func (*Episode) GetEpisode

func (x *Episode) GetEpisode() int32

func (*Episode) GetExplicit

func (x *Episode) GetExplicit() string

func (*Episode) GetId

func (x *Episode) GetId() *ObjectID

func (*Episode) GetImage

func (x *Episode) GetImage() *Image

func (*Episode) GetMP3URL

func (x *Episode) GetMP3URL() string

func (*Episode) GetPodcastID

func (x *Episode) GetPodcastID() *ObjectID

func (*Episode) GetPubDate

func (x *Episode) GetPubDate() *timestamp.Timestamp

func (*Episode) GetSeason

func (x *Episode) GetSeason() int32

func (*Episode) GetSubtitle

func (x *Episode) GetSubtitle() string

func (*Episode) GetSummary

func (x *Episode) GetSummary() string

func (*Episode) GetTitle

func (x *Episode) GetTitle() string

func (*Episode) GetType

func (x *Episode) GetType() string

func (*Episode) ProtoMessage

func (*Episode) ProtoMessage()

func (*Episode) ProtoReflect

func (x *Episode) ProtoReflect() protoreflect.Message

func (*Episode) Reset

func (x *Episode) Reset()

func (*Episode) String

func (x *Episode) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Episodes.ProtoReflect.Descriptor instead.

func (*Episodes) GetEpisodes

func (x *Episodes) GetEpisodes() []*Episode

func (*Episodes) ProtoMessage

func (*Episodes) ProtoMessage()

func (*Episodes) ProtoReflect

func (x *Episodes) ProtoReflect() protoreflect.Message

func (*Episodes) Reset

func (x *Episodes) Reset()

func (*Episodes) String

func (x *Episodes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetTitle

func (x *Image) GetTitle() string

func (*Image) GetUrl

func (x *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

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 FromBSONID

func FromBSONID(o *primitive.ObjectID) *ObjectID

FromBSONID converts a

func NewObjectID

func NewObjectID() *ObjectID

NewObjectID generates a new ObjectID based on the mongodb primitive package

func ObjectIDFromHex

func ObjectIDFromHex(hex string) *ObjectID

ObjectIDFromHex takes the hex and wraps it in a ObjectID struct

func (*ObjectID) Descriptor deprecated

func (*ObjectID) Descriptor() ([]byte, []int)

Deprecated: Use ObjectID.ProtoReflect.Descriptor instead.

func (*ObjectID) GetHex

func (x *ObjectID) GetHex() string

func (*ObjectID) ProtoMessage

func (*ObjectID) ProtoMessage()

func (*ObjectID) ProtoReflect

func (x *ObjectID) ProtoReflect() protoreflect.Message

func (*ObjectID) Reset

func (x *ObjectID) Reset()

func (*ObjectID) String

func (x *ObjectID) String() string

func (*ObjectID) ToBSONID

func (o *ObjectID) ToBSONID() (*primitive.ObjectID, error)

ToBSONID takes a protobuf ObjectID and converts to primitive.ObjectID

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) Descriptor() ([]byte, []int)

Deprecated: Use Podcast.ProtoReflect.Descriptor instead.

func (*Podcast) GetAuthor

func (x *Podcast) GetAuthor() string

func (*Podcast) GetCategory

func (x *Podcast) GetCategory() []*Category

func (*Podcast) GetExplicit

func (x *Podcast) GetExplicit() string

func (*Podcast) GetId

func (x *Podcast) GetId() *ObjectID

func (*Podcast) GetImage

func (x *Podcast) GetImage() *Image

func (*Podcast) GetKeywords

func (x *Podcast) GetKeywords() []string

func (*Podcast) GetLanguage

func (x *Podcast) GetLanguage() string

func (*Podcast) GetLastBuildDate

func (x *Podcast) GetLastBuildDate() *timestamp.Timestamp
func (x *Podcast) GetLink() string

func (*Podcast) GetPubDate

func (x *Podcast) GetPubDate() *timestamp.Timestamp

func (*Podcast) GetRss

func (x *Podcast) GetRss() string

func (*Podcast) GetSubtitle

func (x *Podcast) GetSubtitle() string

func (*Podcast) GetTitle

func (x *Podcast) GetTitle() string

func (*Podcast) GetType

func (x *Podcast) GetType() string

func (*Podcast) ProtoMessage

func (*Podcast) ProtoMessage()

func (*Podcast) ProtoReflect

func (x *Podcast) ProtoReflect() protoreflect.Message

func (*Podcast) Reset

func (x *Podcast) Reset()

func (*Podcast) String

func (x *Podcast) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetEnd

func (x *Request) GetEnd() int64

func (*Request) GetEpisodeID

func (x *Request) GetEpisodeID() *ObjectID

func (*Request) GetPodcastID

func (x *Request) GetPodcastID() *ObjectID

func (*Request) GetStart

func (x *Request) GetStart() int64

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) GetSuccess

func (x *Response) GetSuccess() bool

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetExpires

func (x *Session) GetExpires() *timestamp.Timestamp

func (*Session) GetId

func (x *Session) GetId() *ObjectID

func (*Session) GetLastSeenTime

func (x *Session) GetLastSeenTime() *timestamp.Timestamp

func (*Session) GetLoginTime

func (x *Session) GetLoginTime() *timestamp.Timestamp

func (*Session) GetSessionKey

func (x *Session) GetSessionKey() string

func (*Session) GetUserAgent

func (x *Session) GetUserAgent() string

func (*Session) GetUserID

func (x *Session) GetUserID() *ObjectID

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

func (x *Session) ProtoReflect() protoreflect.Message

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

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

func (UnimplementedAuthServer) Authorize

func (UnimplementedAuthServer) Logout

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) GetUserEpisode

func (UnimplementedPodServer) GetUserLastPlayed

func (UnimplementedPodServer) UpdateUserEpisode

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDOB

func (x *User) GetDOB() *timestamp.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() *ObjectID

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL