mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-01 02:44:31 +08:00 
			
		
		
		
	 c295e4f215
			
		
	
	c295e4f215
	
	
	
		
			
			* Add support for S3 cleanup + standardize firing cleanup. Closes #2646 * fix: manually fix post-merge
		
			
				
	
	
		
			14 lines
		
	
	
		
			343 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			343 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package models
 | |
| 
 | |
| // StorageProvider is how a chunk storage provider should be implemented.
 | |
| type StorageProvider interface {
 | |
| 	Setup() error
 | |
| 	Save(filePath string, retryCount int) (string, error)
 | |
| 
 | |
| 	SegmentWritten(localFilePath string)
 | |
| 	VariantPlaylistWritten(localFilePath string)
 | |
| 	MasterPlaylistWritten(localFilePath string)
 | |
| 
 | |
| 	Cleanup() error
 | |
| }
 |