dto

package
v0.0.0-...-da86336 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TwStreamsToVideos

func TwStreamsToVideos(twStreams []TwitCastingVideo) model.Videos

TwStreamsToVideos converts a slice of TwitCastingVideo to a slice of model.Video.

Types

type TwitCastingVideo

type TwitCastingVideo struct {
	ID           string `json:"id"`
	UserID       string `json:"user_id"`
	Title        string `json:"title"`
	IsLive       bool   `json:"is_live"`
	ViewCount    int    `json:"total_view_count"`
	ThumbnailURL string `json:"large_thumbnail"`
	StartedAt    int    `json:"created"`
}

Jump to

Keyboard shortcuts

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