Documentation ¶
Index ¶
- type Base
- type Event
- type EventType
- type MediaServerMetricsEvent
- type MultistreamMetrics
- type MultistreamTargetInfo
- type MultistreamTargetMetrics
- type MultistreamWebhookPayload
- type OrchestratorMetadata
- type SegmentMetadata
- type StreamMetrics
- type TranscodeAttemptInfo
- type TranscodeEvent
- type UnixMillisTime
- type WebhookEvent
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_ UnixMillisTime `json:"timestamp"` StreamID_ string `json:"streamId"` }
type EventType ¶
type EventType string
const EventTypeMediaServerMetrics EventType = "media_server_metrics"
const EventTypeTranscode EventType = "transcode"
const EventTypeWebhook EventType = "webhook_event"
type MediaServerMetricsEvent ¶ added in v0.3.0
type MediaServerMetricsEvent struct { Base NodeID string `json:"nodeId"` Stats *StreamMetrics Multistream []*MultistreamTargetMetrics }
func NewMediaServerMetricsEvent ¶ added in v0.3.0
func NewMediaServerMetricsEvent(nodeID, streamID string, stats *StreamMetrics, multistream []*MultistreamTargetMetrics) *MediaServerMetricsEvent
type MultistreamMetrics ¶ added in v0.3.0
type MultistreamTargetInfo ¶ added in v0.2.0
type MultistreamTargetMetrics ¶ added in v0.3.0
type MultistreamTargetMetrics struct { Target MultistreamTargetInfo `json:"target"` Metrics *MultistreamMetrics `json:"metrics"` }
type MultistreamWebhookPayload ¶ added in v0.2.0
type MultistreamWebhookPayload struct {
Target MultistreamTargetInfo `json:"target"`
}
type OrchestratorMetadata ¶
type SegmentMetadata ¶
type StreamMetrics ¶ added in v0.3.0
type StreamMetrics struct {
MediaTimeMs *int64 `json:"mediaTimeMs"`
}
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 UnixMillisTime `json:"startTime"` LatencyMs int64 `json:"latencyMs"` Success bool `json:"success"` Attempts []TranscodeAttemptInfo `json:"attempts"` }
func NewTranscodeEvent ¶
func NewTranscodeEvent(nodeID, streamID string, seg SegmentMetadata, startTime time.Time, success bool, attempts []TranscodeAttemptInfo) *TranscodeEvent
type UnixMillisTime ¶ added in v0.2.0
func NewUnixMillisTime ¶ added in v0.2.0
func NewUnixMillisTime(unixMillis int64) UnixMillisTime
func (UnixMillisTime) MarshalJSON ¶ added in v0.2.0
func (u UnixMillisTime) MarshalJSON() ([]byte, error)
func (UnixMillisTime) UnixMillis ¶ added in v0.2.0
func (u UnixMillisTime) UnixMillis() int64
func (*UnixMillisTime) UnmarshalJSON ¶ added in v0.2.0
func (u *UnixMillisTime) UnmarshalJSON(data []byte) error
type WebhookEvent ¶ added in v0.2.0
type WebhookEvent struct { Base Event string `json:"event"` UserID string `json:"userId"` SessionID string `json:"sessionId,omitempty"` Payload json.RawMessage `json:"payload,omitempty"` }
func NewWebhookEvent ¶ added in v0.2.0
func NewWebhookEvent(streamID, event, userID, sessionID string, payload interface{}) (*WebhookEvent, error)
Click to show internal directories.
Click to hide internal directories.