# Functions
No description provided by the author
BaseTokenAmountToFixed converts the base amount of a token (i.e.
CalculateAudioDuration calculates audio file duration using the lpms/ffmpeg package.
No description provided by the author
FixedToPrice converts a fixed point number with 3 decimal places represented as in int64 into a big.Rat.
No description provided by the author
GenErrRegex generates a regexp `(err1)|(err2)|(err3)` given a list of error strings [err1, err2, err3].
No description provided by the author
IgnoreRoutines goroutines to ignore in tests.
No description provided by the author
No description provided by the author
No description provided by the author
MimeTypeToExtension returns the file extension for a given MIME type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PriceToFixed converts a big.Rat into a fixed point number represented as int64 using a scaleFactor of 1000 resulting in max decimal places of 3.
PriceToInt64 converts a *big.Rat to an *int64 if possible, otherwise returns an error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RandName generates random hexadecimal string.
No description provided by the author
Read at most n bytes from an io.Reader.
ReadFromFile attempts to read a file at the supplied location.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateServiceURI checks if the serviceURI is valid.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HTTPDialTimeout timeout used to establish an HTTP connection between nodes.
HTTPTimeout timeout used in HTTP connections between nodes.
No description provided by the author
Max Segment Duration.
Max Segment Size in bytes (cap reading HTTP response body at this size).
MinSegmentUploadTimeout defines the minimum timeout enforced for uploading a segment to orchestrators.
No description provided by the author
RandomIDGenerator generates random hexadecimal string of specified length defined as variable for unit tests.
No description provided by the author
SegHttpPushTimeoutMultiplier used in the HTTP connection for pushing the segment.
SegUploadTimeoutMultiplier used in HTTP connection for uploading the segment.
No description provided by the author
No description provided by the author
WebhookDiscoveryRefreshInterval defines for long the Webhook Discovery values should be cached.
# Structs
DB is an initialized DB driver with prepared statements.
DBOrch is the type binding for a row result from the orchestrators table.
DBOrchFilter is an object used to attach a filter to a selectOrch query.
DBUnbondingLock is the type binding for a row result from the unbondingLocks table.
No description provided by the author
combines B's local metadata about O with info received from this O.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author