package
0.0.0-20210330180253-dcf02bf6ed2e
Repository: https://github.com/buidl-labs/demux.git
Documentation: pkg.go.dev
# Functions
CalculateStorageCost computes the storage cost of a folder in attoFIL and returns it.
CalculateTranscodingCost computes the transcoding cost of a video in wei and returns it.
CreateSegments creates segments of a transcoded video using ffmpeg.
DirSize returns the size of a directory.
GetOrchestratorStats returns an array of OrchestratorStats.
GetPixelsInRendition returns the number of pixels in a particular rendition of a video.
GetTotalPixels returns the total pixels for the 3 renditions combined.
NewFormUploader creates form uploder instance.
PinFolder pins a folder.
ReadLines reads a whole file into memory and returns a slice of its lines.
RemoveContents removes unnecessary files from an asset directory.
RunPoller runs a poller in the background which updates the state of storage deal jobs.
RunPow runs the powergate client.
Upload is a helper function.
WriteLines writes the lines to the given file.
WriteResponse writes some response for a given http request.
# Variables
InitialPowergateSetup creates an instance of PowergateSetup.
# Structs
OrchestratorStat is an object that is received from the livepeer pricing tool.
PowergateSetup initializes stuff.
# Interfaces
FormUploader represents HTTP multipart form submission.