Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxRetryCount = 10 SleepDuration = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFSCluster ¶
type IPFSCluster struct {
Client clusterClient.Client
}
IPFSCluster Storage struct
func GetIpfsClusterStorage ¶ added in v0.1.7
func GetIpfsClusterStorage(storageConfig config.StorageConfiguration) (*IPFSCluster, error)
GetIpfsClusterStorage connection to the Storage Server
func (*IPFSCluster) UploadVideo ¶
UploadVideo in path to Storage
type Storage ¶
type Storage interface {
UploadVideo(context.Context, string) (string, error)
GetVideo(context.Context, string, string) error
}
Storage interface
func GetStorageClient ¶
func GetStorageClient(storageConfig config.StorageConfiguration) (Storage, error)
GetStorageClient using the configuration
Click to show internal directories.
Click to hide internal directories.