Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxRetryCount = 10 SleepDuration = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpfsCluster ¶ added in v0.2.5
type IpfsCluster struct {
Client clusterClient.Client
}
IpfsCluster Storage struct
func GetIpfsClusterStorage ¶ added in v0.1.7
func GetIpfsClusterStorage(storageConfig config.IpfsConfiguration) (*IpfsCluster, error)
GetIpfsClusterStorage connection to the Storage Server
func (*IpfsCluster) UploadVideo ¶ added in v0.2.5
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, any new configurations will be added here
Click to show internal directories.
Click to hide internal directories.