event

package
v0.0.0-...-dec19c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package event defines generic event that sent by processor and uploader to notify videoapi about video object changes.

Index

Constants

View Source
const (
	KindUpdateStatus = iota + 1
	KindVideoPartUploaded
	KindVideoReady
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	PartInfo  *PartInfo
	VideoInfo *VideoInfo
	Kind      int
}

Event is a Video API notification event.

type PartInfo

type PartInfo struct {
	VideoID  string
	Checksum string
	Num      uint
}

type VideoInfo

type VideoInfo struct {
	VideoID  string
	Location string
	Meta     []byte
	Status   int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL