Documentation ¶
Index ¶
- type LocalStorage
- func (s *LocalStorage) Cleanup() error
- func (s *LocalStorage) MasterPlaylistWritten(localFilePath string)
- func (s *LocalStorage) Save(filePath string, retryCount int) (string, error)
- func (s *LocalStorage) SegmentWritten(localFilePath string)
- func (s *LocalStorage) Setup() error
- func (s *LocalStorage) VariantPlaylistWritten(localFilePath string)
- type S3Storage
- func (s *S3Storage) Cleanup() error
- func (s *S3Storage) MasterPlaylistWritten(localFilePath string)
- func (s *S3Storage) RemoteCleanup() error
- func (s *S3Storage) Save(filePath string, retryCount int) (string, error)
- func (s *S3Storage) SegmentWritten(localFilePath string)
- func (s *S3Storage) Setup() error
- func (s *S3Storage) VariantPlaylistWritten(localFilePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
LocalStorage represents an instance of the local storage provider for HLS video.
func NewLocalStorage ¶ added in v0.0.11
func NewLocalStorage() *LocalStorage
NewLocalStorage returns a new LocalStorage instance.
func (*LocalStorage) Cleanup ¶ added in v0.1.1
func (s *LocalStorage) Cleanup() error
Cleanup will remove old files from the storage provider.
func (*LocalStorage) MasterPlaylistWritten ¶
func (s *LocalStorage) MasterPlaylistWritten(localFilePath string)
MasterPlaylistWritten is called when the master hls playlist is written.
func (*LocalStorage) Save ¶
func (s *LocalStorage) Save(filePath string, retryCount int) (string, error)
Save will save a local filepath using the storage provider.
func (*LocalStorage) SegmentWritten ¶
func (s *LocalStorage) SegmentWritten(localFilePath string)
SegmentWritten is called when a single segment of video is written.
func (*LocalStorage) Setup ¶
func (s *LocalStorage) Setup() error
Setup configures this storage provider.
func (*LocalStorage) VariantPlaylistWritten ¶
func (s *LocalStorage) VariantPlaylistWritten(localFilePath string)
VariantPlaylistWritten is called when a variant hls playlist is written.
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage is the s3 implementation of a storage provider.
func NewS3Storage ¶ added in v0.0.11
func NewS3Storage() *S3Storage
NewS3Storage returns a new S3Storage instance.
func (*S3Storage) MasterPlaylistWritten ¶
MasterPlaylistWritten is called when the master hls playlist is written.
func (*S3Storage) RemoteCleanup ¶ added in v0.1.3
RemoteCleanup will remove old files from the remote storage provider.
func (*S3Storage) SegmentWritten ¶
SegmentWritten is called when a single segment of video is written.
func (*S3Storage) VariantPlaylistWritten ¶
VariantPlaylistWritten is called when a variant hls playlist is written.