Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BreadcrumbRepo ¶
type BreadcrumbRepo interface { Series(ctx context.Context, seriesID int) ([]breadcrumb.Breadcrumb, error) Video(ctx context.Context, videoID int) ([]breadcrumb.Breadcrumb, error) Find(ctx context.Context, path string) (breadcrumb.Item, error) }
BreadcrumbRepo defines all creator breadcrumb interactions
type ChannelRepo ¶ added in v0.7.0
type ChannelRepo interface { ListChannels(ctx context.Context) ([]playout.Channel, error) NewChannel(ctx context.Context, ch playout.Channel) error UpdateChannel(ctx context.Context, ch playout.Channel) error DeleteChannel(ctx context.Context, urlName string) error }
ChannelRepo defines all channel interactions
type EncodeRepo ¶
type EncodeRepo interface { ListFormat(ctx context.Context) ([]encode.Format, error) NewFormat(ctx context.Context, format encode.Format) (int, error) UpdateFormat(ctx context.Context, format encode.Format) error DeleteFormat(ctx context.Context, formatID int) error GetPreset(ctx context.Context, presetID int) (encode.Preset, error) ListPreset(ctx context.Context) ([]encode.Preset, error) NewPreset(ctx context.Context, p encode.Preset) (int, error) UpdatePreset(ctx context.Context, p encode.Preset) error DeletePreset(ctx context.Context, presetID int) error }
EncodeRepo defines all encode interactions
type PlaylistRepo ¶
type PlaylistRepo interface { All(ctx context.Context) ([]playlist.Playlist, error) Get(ctx context.Context, playlistID int) (playlist.Playlist, error) New(ctx context.Context, p playlist.New) (int, error) Update(ctx context.Context, p playlist.Meta, videoIDs []int) error AddVideo(ctx context.Context, playlistID, videoID int) error DeleteVideo(ctx context.Context, playlistID, videoID int) error AddVideos(ctx context.Context, playlistID int, videoIDs []int) error }
PlaylistRepo defines all playlist interactions
type SeriesRepo ¶
type SeriesRepo interface { Get(ctx context.Context, seriesID int) (series.Series, error) GetMeta(ctx context.Context, seriesID int) (series.Meta, error) ImmediateChildrenSeries(ctx context.Context, seriesID int) ([]series.Meta, error) List(ctx context.Context) ([]series.Meta, error) FromPath(ctx context.Context, path string) (series.Series, error) }
SeriesRepo defines all creator series interactions
type StatRepo ¶
type StatRepo interface {
GlobalVideo(ctx context.Context) (stats.VideoGlobalStats, error)
}
StatRepo defines all statistical interactions
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store contains our dependency
func (*Store) GlobalVideo ¶
GlobalVideo returns general information about video library
type VideoRepo ¶
type VideoRepo interface { // Get methods GetItem(ctx context.Context, id int) (video.Item, error) ListMeta(ctx context.Context) ([]video.Meta, error) ListMetaByUser(ctx context.Context, userID int) ([]video.Meta, error) ListByCalendarMonth(ctx context.Context, year, month int) ([]video.MetaCal, error) OfSeries(ctx context.Context, seriesID int) ([]video.Meta, error) Search(ctx context.Context, query string) ([]video.Meta, error) // New method NewItem(ctx context.Context, v video.New) (int, error) // Update method UpdateMeta(ctx context.Context, meta video.Meta) error // Delete method DeleteItem(ctx context.Context, videoID, userID int) error }
VideoRepo defines all creator video interactions
Click to show internal directories.
Click to hide internal directories.