structures

package
v0.0.0-...-dc28b34 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiTranscodeUpdate

type ApiTranscodeUpdate struct {
	VodID   primitive.ObjectID `json:"vod_id"`
	Variant VodVariant         `json:"variant"`
	Error   string             `json:"error"`
}

type Chat

type Chat struct {
	ID     primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Twitch struct {
		ID          string `json:"id" bson:"id"`
		Login       string `json:"login" bson:"login"`
		DisplayName string `json:"display_name" bson:"display_name"`
	} `json:"twitch" bson:"twitch"`
	Timestamp time.Time   `json:"timestamp" bson:"timestamp"`
	Content   string      `json:"content" bson:"content"`
	Badges    []ChatBadge `json:"badges" bson:"badges"`
	Emotes    []ChatEmote `json:"emotes" bson:"chat_emote"`
}

type ChatBadge

type ChatBadge struct {
	Name string `json:"name" bson:"name"`
	URL  string `json:"url" bson:"url"`
}

type ChatEmote

type ChatEmote struct {
	Name string `json:"name" bson:"name"`
	URL  string `json:"url" bson:"url"`
}

type User

type User struct {
	ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`

	Twitch struct {
		ID             string `json:"id" bson:"id"`
		Login          string `json:"login" bson:"login"`
		DisplayName    string `json:"display_name" bson:"display_name"`
		ProfilePicture string `json:"profile_picture" bson:"profile_picture"`
	} `json:"twitch" bson:"twitch"`

	StreamKey string `json:"stream_key" bson:"stream_key"`
}

type Vod

type Vod struct {
	ID     primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	UserID primitive.ObjectID `json:"user_id" bson:"user_id"`

	Title string `json:"title" bson:"title"`

	Categories []VodCategory `json:"categories" bson:"categories"`

	State      VodState      `json:"vod_state" bson:"vod_state"`
	Visibility VodVisibility `json:"vod_visibility" bson:"vod_visibility"`

	Variants []VodVariant `json:"variants" bson:"variants"`

	StartedAt time.Time `json:"started_at" bson:"started_at"`
	EndedAt   time.Time `json:"ended_at" bson:"ended_at"`
}

type VodCategory

type VodCategory struct {
	Timestamp time.Time `json:"timestamp" bson:"timestamp"`
	Name      string    `json:"name" bson:"name"`
	ID        string    `json:"id" bson:"id"`
	URL       string    `json:"url" bson:"url"`
}

type VodState

type VodState int32
const (
	VodStateLive VodState = iota
	VodStateQueued
	VodStateProcessing
	VodStateReady
	VodStateStorage
	VodStateFailed
	VodStateCanceled
)

type VodTranscodeJob

type VodTranscodeJob struct {
	VodID   primitive.ObjectID `json:"vod_id"`
	Variant VodVariant         `json:"variant"`
}

type VodVariant

type VodVariant struct {
	Name    string `json:"name" bson:"name"`
	Width   int    `json:"width" bson:"width"`
	Height  int    `json:"height" bson:"height"`
	FPS     int    `json:"fps" bson:"fps"`
	Bitrate int    `json:"bitrate" bson:"bitrate"`
	Ready   bool   `json:"ready" bson:"ready"`
}

type VodVisibility

type VodVisibility int32
const (
	VodVisibilityPublic VodVisibility = iota
	VodVisibilityHidden
	VodVisibilityDeleted
)

Jump to

Keyboard shortcuts

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