Documentation
¶
Index ¶
- Constants
- Variables
- func AuthWebhookFinished(dur time.Duration)
- func CurrentSessions(currentSessions int)
- func Deposit(sender string, deposit *big.Int)
- func FastVerificationDone()
- func FastVerificationEnabledAndUsingCurrentSessions(enabled, using int)
- func FastVerificationFailed()
- func HTTPClientTimedOut1()
- func HTTPClientTimedOut2()
- func InitCensus(nodeType NodeType, version string)
- func LogDiscoveryError(code string)
- func MaxGasPrice(maxGasPrice *big.Int)
- func MaxSessions(maxSessions int)
- func MaxTranscodingPrice(maxPrice *big.Rat)
- func MilPixelsProcessed(milPixels float64)
- func MinGasPrice(minGasPrice *big.Int)
- func OrchestratorSwapped()
- func PaymentCreateError()
- func PaymentRecvError(errStr string)
- func RecordingPlaylistSaved(dur time.Duration, err error)
- func RecordingSegmentSaved(dur time.Duration, err error)
- func Reserve(sender string, reserve *big.Int)
- func SegmentDownloaded(ctx context.Context, nonce, seqNo uint64, downloadDur time.Duration)
- func SegmentEmerged(ctx context.Context, nonce, seqNo uint64, profilesNum int, dur float64)
- func SegmentFullyProcessed(segDur, processDur float64)
- func SegmentFullyTranscoded(nonce, seqNo uint64, profiles string, errCode SegmentTranscodeError)
- func SegmentTranscodeFailed(ctx context.Context, subType SegmentTranscodeError, nonce, seqNo uint64, ...)
- func SegmentTranscoded(ctx context.Context, nonce, seqNo uint64, sourceDur time.Duration, ...)
- func SegmentUploadFailed(ctx context.Context, nonce, seqNo uint64, code SegmentUploadError, err error, ...)
- func SegmentUploaded(ctx context.Context, nonce, seqNo uint64, uploadDur time.Duration)
- func SetTranscodersNumberAndLoad(load, capacity, number int)
- func SourceSegmentAppeared(ctx context.Context, nonce, seqNo uint64, manifestID, profile string, ...)
- func StreamCreateFailed(nonce uint64, reason string)
- func StreamCreated(hlsStrmID string, nonce uint64)
- func StreamEnded(ctx context.Context, nonce uint64)
- func StreamStarted(nonce uint64)
- func SuggestedGasPrice(gasPrice *big.Int)
- func TicketRedemptionError()
- func TicketValueRecv(value *big.Rat)
- func TicketValueSent(value *big.Rat)
- func TicketsRecv(numTickets int)
- func TicketsSent(numTickets int)
- func TranscodeTry(ctx context.Context, nonce, seqNo uint64)
- func TranscodedSegmentAppeared(ctx context.Context, nonce, seqNo uint64, profile string, ...)
- func TranscodingPrice(sender string, price *big.Rat)
- func ValueRedeemed(value *big.Int)
- func WinningTicketsRecv(numTickets int)
- type NodeType
- type SegmentTranscodeError
- type SegmentUploadError
Constants ¶
const ( SegmentUploadErrorUnknown SegmentUploadError = "Unknown" SegmentUploadErrorGenCreds SegmentUploadError = "GenCreds" SegmentUploadErrorOS SegmentUploadError = "ObjectStorage" SegmentUploadErrorSessionEnded SegmentUploadError = "SessionEnded" SegmentUploadErrorInsufficientBalance SegmentUploadError = "InsufficientBalance" SegmentUploadErrorTimeout SegmentUploadError = "Timeout" SegmentUploadErrorDuplicateSegment SegmentUploadError = "DuplicateSegment" SegmentUploadErrorOrchestratorCapped SegmentUploadError = "OrchestratorCapped" SegmentTranscodeErrorUnknown SegmentTranscodeError = "Unknown" SegmentTranscodeErrorUnknownResponse SegmentTranscodeError = "UnknownResponse" SegmentTranscodeErrorTranscode SegmentTranscodeError = "Transcode" SegmentTranscodeErrorOrchestratorBusy SegmentTranscodeError = "OrchestratorBusy" SegmentTranscodeErrorOrchestratorCapped SegmentTranscodeError = "OrchestratorCapped" SegmentTranscodeErrorParseResponse SegmentTranscodeError = "ParseResponse" SegmentTranscodeErrorReadBody SegmentTranscodeError = "ReadBody" SegmentTranscodeErrorNoOrchestrators SegmentTranscodeError = "NoOrchestrators" SegmentTranscodeErrorDownload SegmentTranscodeError = "Download" SegmentTranscodeErrorSaveData SegmentTranscodeError = "SaveData" SegmentTranscodeErrorSessionEnded SegmentTranscodeError = "SessionEnded" SegmentTranscodeErrorDuplicateSegment SegmentTranscodeError = "DuplicateSegment" )
Variables ¶
var Enabled bool
Enabled true if metrics was enabled in command line
var Exporter *prometheus.Exporter
Exporter Prometheus exporter that handles `/metrics` endpoint
var NodeID string
Functions ¶
func AuthWebhookFinished ¶ added in v0.5.5
func CurrentSessions ¶ added in v0.5.0
func CurrentSessions(currentSessions int)
func FastVerificationDone ¶ added in v0.5.23
func FastVerificationDone()
func FastVerificationEnabledAndUsingCurrentSessions ¶ added in v0.5.23
func FastVerificationEnabledAndUsingCurrentSessions(enabled, using int)
func FastVerificationFailed ¶ added in v0.5.23
func FastVerificationFailed()
func HTTPClientTimedOut1 ¶ added in v0.5.11
func HTTPClientTimedOut1()
func HTTPClientTimedOut2 ¶ added in v0.5.11
func HTTPClientTimedOut2()
func InitCensus ¶ added in v0.5.0
func LogDiscoveryError ¶ added in v0.5.0
func LogDiscoveryError(code string)
LogDiscoveryError records discovery error
func MaxGasPrice ¶ added in v0.5.19
func MaxSessions ¶ added in v0.5.0
func MaxSessions(maxSessions int)
func MaxTranscodingPrice ¶ added in v0.5.19
func MilPixelsProcessed ¶ added in v0.5.19
func MilPixelsProcessed(milPixels float64)
func MinGasPrice ¶ added in v0.5.19
func OrchestratorSwapped ¶ added in v0.5.14
func OrchestratorSwapped()
func PaymentCreateError ¶ added in v0.5.0
func PaymentCreateError()
PaymentCreateError records a error from payment creation
func PaymentRecvError ¶ added in v0.5.0
func PaymentRecvError(errStr string)
PaymentRecvError records an error from receiving a payment
func RecordingPlaylistSaved ¶ added in v0.5.14
func RecordingSegmentSaved ¶ added in v0.5.14
func SegmentDownloaded ¶ added in v0.5.13
func SegmentEmerged ¶ added in v0.5.0
func SegmentFullyProcessed ¶ added in v0.5.11
func SegmentFullyProcessed(segDur, processDur float64)
func SegmentFullyTranscoded ¶ added in v0.5.0
func SegmentFullyTranscoded(nonce, seqNo uint64, profiles string, errCode SegmentTranscodeError)
func SegmentTranscodeFailed ¶ added in v0.5.0
func SegmentTranscoded ¶ added in v0.5.0
func SegmentUploadFailed ¶ added in v0.5.0
func SegmentUploaded ¶ added in v0.5.0
func SetTranscodersNumberAndLoad ¶ added in v0.5.0
func SetTranscodersNumberAndLoad(load, capacity, number int)
func SourceSegmentAppeared ¶ added in v0.5.0
func StreamCreateFailed ¶ added in v0.5.0
func StreamCreated ¶ added in v0.5.0
func StreamEnded ¶ added in v0.5.0
func StreamStarted ¶ added in v0.5.0
func StreamStarted(nonce uint64)
func SuggestedGasPrice ¶ added in v0.5.0
SuggestedGasPrice records the last suggested gas price
func TicketRedemptionError ¶ added in v0.5.0
func TicketRedemptionError()
TicketRedemptionError records an error from redeeming a ticket
func TicketValueRecv ¶ added in v0.5.0
TicketValueRecv records the ticket value received from a sender for a manifestID
func TicketValueSent ¶ added in v0.5.0
TicketValueSent records the ticket value sent
func TicketsRecv ¶ added in v0.5.0
func TicketsRecv(numTickets int)
TicketsRecv records the number of tickets received from a sender for a manifestID
func TicketsSent ¶ added in v0.5.0
func TicketsSent(numTickets int)
TicketsSent records the number of tickets sent
func TranscodeTry ¶ added in v0.5.0
func TranscodedSegmentAppeared ¶ added in v0.5.0
func TranscodingPrice ¶ added in v0.5.0
TranscodingPrice records the last transcoding price
func ValueRedeemed ¶ added in v0.5.0
ValueRedeemed records the value from redeeming winning tickets
func WinningTicketsRecv ¶ added in v0.5.0
func WinningTicketsRecv(numTickets int)
WinningTicketsRecv records the number of winning tickets received
Types ¶
type SegmentTranscodeError ¶ added in v0.5.0
type SegmentTranscodeError string
type SegmentUploadError ¶ added in v0.5.0
type SegmentUploadError string