live

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Live

type Live struct {
	ID          uuid.UUID `json:"id"`
	IsLive      bool      `json:"is_live"`
	ArchiveChat bool      `json:"archive_chat"`
	Resolution  string    `json:"resolution"`
	LastLive    time.Time `json:"last_live"`
}

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) 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)

Jump to

Keyboard shortcuts

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