Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Type EventType `json:"type"` ID_ uuid.UUID `json:"id"` Timestamp_ UnixNanoTime `json:"timestamp"` ManifestID_ string `json:"manifestId"` }
func (*Base) ManifestID ¶
type Event ¶
func ParseEvent ¶
type OrchestratorMetadata ¶
type SegmentMetadata ¶
type TranscodeAttemptInfo ¶
type TranscodeAttemptInfo struct { Orchestrator OrchestratorMetadata `json:"orchestrator"` LatencyMs int64 `json:"latencyMs"` Error *string `json:"error"` }
type TranscodeEvent ¶
type TranscodeEvent struct { Base NodeID string `json:"nodeId"` Segment SegmentMetadata `json:"segment"` StartTime UnixNanoTime `json:"startTime"` LatencyMs int64 `json:"latencyMs"` Success bool `json:"success"` Attempts []TranscodeAttemptInfo `json:"attempts"` }
func NewTranscodeEvent ¶
func NewTranscodeEvent(nodeID, mid string, seg SegmentMetadata, startTime time.Time, success bool, attempts []TranscodeAttemptInfo) *TranscodeEvent
type UnixNanoTime ¶
func (UnixNanoTime) MarshalJSON ¶
func (u UnixNanoTime) MarshalJSON() ([]byte, error)
func (*UnixNanoTime) UnmarshalJSON ¶
func (u *UnixNanoTime) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.