live

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertChat added in v1.0.6

type ConvertChat struct {
	FileName      string `json:"file_name"`
	ChannelName   string `json:"channel_name"`
	VodID         string `json:"vod_id"`
	ChannelID     int    `json:"channel_id"`
	VodExternalID string `json:"vod_external_id"`
	ChatStart     string `json:"chat_start"`
}

type Language added in v1.1.0

type Language string

type Live

type Live struct {
	ID                 uuid.UUID `json:"id"`
	WatchLive          bool      `json:"watch_live"`
	WatchVod           bool      `json:"watch_vod"`
	DownloadArchives   bool      `json:"download_archives"`
	DownloadHighlights bool      `json:"download_highlights"`
	DownloadUploads    bool      `json:"download_uploads"`
	IsLive             bool      `json:"is_live"`
	ArchiveChat        bool      `json:"archive_chat"`
	Resolution         string    `json:"resolution"`
	LastLive           time.Time `json:"last_live"`
	RenderChat         bool      `json:"render_chat"`
	DownloadSubOnly    bool      `json:"download_sub_only"`
}

type Pagination added in v1.1.0

type Pagination struct {
	Cursor string `json:"cursor"`
}

type Service

type Service struct {
	Store          *database.Database
	TwitchService  *twitch.Service
	ArchiveService *archive.Service
}

func NewService

func NewService(store *database.Database, twitchService *twitch.Service, archiveService *archive.Service) *Service

func (*Service) AddLiveWatchedChannel

func (s *Service) AddLiveWatchedChannel(c echo.Context, liveDto Live) (*ent.Live, error)

func (*Service) Check

func (s *Service) Check() error

func (*Service) CheckVodWatchedChannels added in v1.1.0

func (s *Service) CheckVodWatchedChannels()

func (*Service) ConvertChat added in v1.0.6

func (s *Service) ConvertChat(c echo.Context, convertChatDto ConvertChat) error

func (*Service) DeleteLiveWatchedChannel

func (s *Service) DeleteLiveWatchedChannel(c echo.Context, lID uuid.UUID) error

func (*Service) GetLiveWatchedChannels

func (s *Service) GetLiveWatchedChannels(c echo.Context) ([]*ent.Live, error)

func (*Service) UpdateLiveWatchedChannel

func (s *Service) UpdateLiveWatchedChannel(c echo.Context, liveDto Live) (*ent.Live, error)

type TwitchVideoResponse added in v1.1.0

type TwitchVideoResponse struct {
	Data       []Video    `json:"data"`
	Pagination Pagination `json:"pagination"`
}

type Type added in v1.1.0

type Type string

type UserLogin added in v1.1.0

type UserLogin string

type UserName added in v1.1.0

type UserName string

type Video added in v1.1.0

type Video struct {
	ID            string      `json:"id"`
	StreamID      string      `json:"stream_id"`
	UserID        string      `json:"user_id"`
	UserLogin     UserLogin   `json:"user_login"`
	UserName      UserName    `json:"user_name"`
	Title         string      `json:"title"`
	Description   string      `json:"description"`
	CreatedAt     string      `json:"created_at"`
	PublishedAt   string      `json:"published_at"`
	URL           string      `json:"url"`
	ThumbnailURL  string      `json:"thumbnail_url"`
	Viewable      Viewable    `json:"viewable"`
	ViewCount     int64       `json:"view_count"`
	Language      Language    `json:"language"`
	Type          Type        `json:"type"`
	Duration      string      `json:"duration"`
	MutedSegments interface{} `json:"muted_segments"`
}

type Viewable added in v1.1.0

type Viewable string

Jump to

Keyboard shortcuts

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