Documentation ¶
Index ¶
- func GetMovieDuration(uri string) (duration int64, err error)
- func GetMovieFileSize(uri string) (int64, error)
- type Service
- func (s *Service) AddMediaSource(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterMediaSourcesResponse, error)
- func (s *Service) AddSubtitles(ctx context.Context, req *proto.AddSubtitlesRequest) (*proto.SubtitlesResponse, error)
- func (s *Service) Follow(ctx context.Context, req *proto.TheaterAuthRequest) (*proto.Response, error)
- func (s *Service) GetFollowedTheaters(ctx context.Context, req *proto.AuthenticateRequest) (*proto.FollowedTheatersResponse, error)
- func (s *Service) GetMediaSource(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterMediaSourcesResponse, error)
- func (s *Service) GetMediaSources(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterMediaSourcesResponse, error)
- func (s *Service) GetSubtitles(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterSubtitlesResponse, error)
- func (s *Service) GetTheater(ctx context.Context, req *proto.GetTheaterRequest) (*proto.UserTheaterResponse, error)
- func (s *Service) Invite(ctx context.Context, req *proto.InviteFriendsTheaterRequest) (*proto.Response, error)
- func (s *Service) RemoveMediaSource(ctx context.Context, req *proto.MediaSourceRemoveRequest) (*proto.Response, error)
- func (s *Service) RemoveSubtitle(ctx context.Context, req *proto.RemoveSubtitleRequest) (*proto.Response, error)
- func (s *Service) SavePosterFromUrl(url string) (string, error)
- func (s *Service) SelectMediaSource(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterMediaSourcesResponse, error)
- func (s *Service) Unfollow(ctx context.Context, req *proto.TheaterAuthRequest) (*proto.Response, error)
- func (s *Service) UpdateTheater(ctx context.Context, req *proto.TheaterAuthRequest) (*proto.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMovieDuration ¶
func GetMovieFileSize ¶
Types ¶
type Service ¶
type Service struct { *core.Context proto.UnimplementedTheaterServiceServer }
func NewService ¶
func (*Service) AddMediaSource ¶
func (s *Service) AddMediaSource(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterMediaSourcesResponse, error)
func (*Service) AddSubtitles ¶
func (s *Service) AddSubtitles(ctx context.Context, req *proto.AddSubtitlesRequest) (*proto.SubtitlesResponse, error)
Get all subtitles from theater
func (*Service) GetFollowedTheaters ¶
func (s *Service) GetFollowedTheaters(ctx context.Context, req *proto.AuthenticateRequest) (*proto.FollowedTheatersResponse, error)
func (*Service) GetMediaSource ¶
func (s *Service) GetMediaSource(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterMediaSourcesResponse, error)
func (*Service) GetMediaSources ¶
func (s *Service) GetMediaSources(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterMediaSourcesResponse, error)
func (*Service) GetSubtitles ¶
func (s *Service) GetSubtitles(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterSubtitlesResponse, error)
Get all subtitles from theater
func (*Service) GetTheater ¶
func (s *Service) GetTheater(ctx context.Context, req *proto.GetTheaterRequest) (*proto.UserTheaterResponse, error)
func (*Service) RemoveMediaSource ¶
func (*Service) RemoveSubtitle ¶
func (s *Service) RemoveSubtitle(ctx context.Context, req *proto.RemoveSubtitleRequest) (*proto.Response, error)
Remove subtitle from theater
func (*Service) SelectMediaSource ¶
func (s *Service) SelectMediaSource(ctx context.Context, req *proto.MediaSourceAuthRequest) (*proto.TheaterMediaSourcesResponse, error)
func (*Service) UpdateTheater ¶
Click to show internal directories.
Click to hide internal directories.