Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptionEncoder ¶
CaptionEncoder defines an interface for encoding captions into different formats
type ClipRepository ¶
type ClipRepository interface { GetContent(*Clip) (io.ReadCloser, error) Exists(*Clip) (bool, error) }
ClipRepository defines an interface for fetching video clips
type CourseRepository ¶
CourseRepository defined an interface for fetching courses
type OnDecrypted ¶
OnDecrypted defines a callback function called when a video clip is decrypted
type Service ¶
type Service struct { Decoder Decoder Storage Storage CaptionEncoder CaptionEncoder Courses CourseRepository Clips ClipRepository }
Service represents the decryption service which decrypts video courses and stores the courses in a readable format
func (*Service) DecryptAll ¶
func (s *Service) DecryptAll(evt OnDecrypted) error
DecryptAll decrypts all of the video courses contained in the courses repository
Click to show internal directories.
Click to hide internal directories.