Documentation
¶
Index ¶
- Constants
- Variables
- func AuthWebhookFinished(dur time.Duration)
- func CurrentSessions(currentSessions int)
- func Deposit(sender string, deposit *big.Int)
- func FastVerificationDone(ctx context.Context, uri string)
- func FastVerificationEnabledAndUsingCurrentSessions(enabled, using int)
- func FastVerificationFailed(ctx context.Context, uri string)
- func HTTPClientTimedOut1(ctx context.Context)
- func HTTPClientTimedOut2(ctx context.Context)
- func InitCensus(nodeType NodeType, version string)
- func LogDiscoveryError(ctx context.Context, uri, code string)
- func MaxGasPrice(maxGasPrice *big.Int)
- func MaxSessions(maxSessions int)
- func MaxTranscodingPrice(maxPrice *big.Rat)
- func MilPixelsProcessed(ctx context.Context, milPixels float64)
- func MinGasPrice(minGasPrice *big.Int)
- func OrchestratorSwapped(ctx context.Context)
- func PaymentCreateError(ctx context.Context)
- func PaymentRecvError(ctx context.Context, sender string, 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(ctx context.Context, segDur, processDur float64)
- func SegmentFullyTranscoded(ctx context.Context, nonce, seqNo uint64, profiles string, ...)
- 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, uri string)
- func SetTranscodersNumberAndLoad(load, capacity, number int)
- func SourceSegmentAppeared(ctx context.Context, nonce, seqNo uint64, manifestID, profile string, ...)
- func StreamCreated(manifestID string, nonce uint64)
- func StreamEnded(ctx context.Context, nonce uint64)
- func StreamStarted(nonce uint64)
- func SuggestedGasPrice(gasPrice *big.Int)
- func TicketRedemptionError(sender string)
- func TicketValueRecv(ctx context.Context, sender string, value *big.Rat)
- func TicketValueSent(ctx context.Context, value *big.Rat)
- func TicketsRecv(ctx context.Context, sender string, numTickets int)
- func TicketsSent(ctx context.Context, numTickets int)
- func TranscodeTry(ctx context.Context, nonce, seqNo uint64)
- func TranscodingPrice(sender string, price *big.Rat)
- func ValueRedeemed(sender string, value *big.Int)
- func WinningTicketsRecv(ctx context.Context, sender string, 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 ExposeClientIP bool
ExposeClientIP if true then Orchestrator exposes Broadcaster's IP address in metrics
var NodeID string
var PerStreamMetrics bool
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 FastVerificationEnabledAndUsingCurrentSessions ¶ added in v0.5.23
func FastVerificationEnabledAndUsingCurrentSessions(enabled, using int)
func FastVerificationFailed ¶ added in v0.5.23
func HTTPClientTimedOut1 ¶ added in v0.5.11
func HTTPClientTimedOut2 ¶ added in v0.5.11
func InitCensus ¶ added in v0.5.0
func LogDiscoveryError ¶ added in v0.5.0
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 MinGasPrice ¶ added in v0.5.19
func OrchestratorSwapped ¶ added in v0.5.14
func PaymentCreateError ¶ added in v0.5.0
PaymentCreateError records a error from payment creation
func PaymentRecvError ¶ added in v0.5.0
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 SegmentFullyTranscoded ¶ added in v0.5.0
func SegmentFullyTranscoded(ctx context.Context, nonce, seqNo uint64, profiles string, errCode SegmentTranscodeError, orchInfo *lpnet.OrchestratorInfo)
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 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(sender string)
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
TicketsRecv records the number of tickets received from a sender for a manifestID
func TicketsSent ¶ added in v0.5.0
TicketsSent records the number of tickets sent
func TranscodeTry ¶ 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
Types ¶
type SegmentTranscodeError ¶ added in v0.5.0
type SegmentTranscodeError string
type SegmentUploadError ¶ added in v0.5.0
type SegmentUploadError string