creator

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.7.0

type Config struct {
	IngestBucket string
	ServeBucket  string
}

Repos represents all our data repositories

type EncodeRepo added in v0.9.6

type EncodeRepo interface {
	ListEncodeFormats(c echo.Context) error
	NewEncodeFormat(c echo.Context) error
	UpdateEncodeFormat(c echo.Context) error
	DeleteEncodeFormat(c echo.Context) error
	ListEncodePresets(c echo.Context) error
	NewEncodePreset(c echo.Context) error
	UpdateEncodePreset(c echo.Context) error
	DeleteEncodePreset(c echo.Context) error
}

Repos represents all our data repositories

type NewVideoOutput added in v0.7.0

type NewVideoOutput struct {
	VideoID int `json:"id"`
}

type PlaylistRepo added in v0.9.6

type PlaylistRepo interface {
	ListPlaylists(c echo.Context) error
	GetPlaylist(c echo.Context) error
	NewPlaylist(c echo.Context) error
	UpdatePlaylist(c echo.Context) error
	DeletePlaylist(c echo.Context) error
}

Repos represents all our data repositories

type PlayoutRepo added in v0.9.6

type PlayoutRepo interface {
	ListChannels(c echo.Context) error
	NewChannel(c echo.Context) error
	UpdateChannel(c echo.Context) error
	DeleteChannel(c echo.Context) error
}

Repos represents all our data repositories

type Repos

Repos represents all our data repositories

func NewRepos

func NewRepos(db *sqlx.DB, cdn *s3.S3, enc encoder.Repo, access utils.Repo, conf *Config, cdnEndpoint string) Repos

NewRepos creates our data repositories

type SeriesRepo added in v0.9.6

type SeriesRepo interface {
	ListSeries(c echo.Context) error
	GetSeries(c echo.Context) error
	UpdateSeries(c echo.Context) error
	DeleteSeries(c echo.Context) error
}

Repos represents all our data repositories

type Store added in v0.9.6

type Store struct {
	// contains filtered or unexported fields
}

Repos represents all our data repositories

func (*Store) DeleteChannel added in v0.9.6

func (s *Store) DeleteChannel(c echo.Context) error

DeleteChannel handles deleting channels @Summary Delete channel @Description deletes a channel by the short URL. @ID delete-creator-playout-channel @Tags creator-playout-channels @Param channelid path string true "Channel URL Name" @Success 200 @Router /v1/internal/creator/playout/channel/{channelid} [delete]

func (*Store) DeleteEncodeFormat added in v0.9.6

func (s *Store) DeleteEncodeFormat(c echo.Context) error

DeleteEncodeFormat handles deleting quotes @Summary Delete an encode format @Description Delete a video encode format @ID delete-creator-encode-format @Tags creator-encodes @Param formatid path int true "Format ID" @Success 200 @Router /v1/internal/creator/encode/format/{formatid} [delete]

func (*Store) DeleteEncodePreset added in v0.9.6

func (s *Store) DeleteEncodePreset(c echo.Context) error

DeleteEncodePreset handles deleting presets @Summary Delete a encode preset @Description Delete a video encode preset @ID delete-creator-encode-preset @Tags creator-encodes @Param presetid path int true "Preset ID" @Success 200 @Router /v1/internal/creator/encode/preset/{presetid} [delete]

func (*Store) DeletePlaylist added in v0.9.6

func (s *Store) DeletePlaylist(c echo.Context) error

DeletePlaylist handles deleting playlist @Summary Delete a playlist @Description Delete a playlist @ID delete-creator-playlist @Tags creator-playlist @Param playlistid path int true "Series ID" @Success 200 @Router /v1/internal/creator/playlist/{playlistid} [delete]

func (*Store) DeleteSeries added in v0.9.6

func (s *Store) DeleteSeries(c echo.Context) error

DeleteSeries handles deleting series @Summary Delete a series @Description Delete a series @ID delete-creator-series @Tags creator-series @Param seriesid path int true "Series ID" @Success 204 @Router /v1/internal/creator/series/{seriesid} [delete]

func (*Store) DeleteVideo added in v0.9.6

func (s *Store) DeleteVideo(c echo.Context) error

func (*Store) GetPlaylist added in v0.9.6

func (s *Store) GetPlaylist(c echo.Context) error

GetPlaylist handles getting a single playlist, and it's following videometa's @Summary Get playlist by ID @Description Get a playlist including its children videos. @ID get-creator-playlist @Tags creator-playlists @Produce json @Param playlistid path int true "Playlist ID" @Success 200 {object} playlist.Playlist @Router /v1/internal/creator/playlist/{playlistid} [get]

func (*Store) GetSeries added in v0.9.6

func (s *Store) GetSeries(c echo.Context) error

GetSeries finds a video by ID @Summary Get series by ID @Description Get a series including its children videos. @ID get-creator-series @Tags creator-series @Produce json @Param seriesid path int true "Series ID" @Success 200 {object} series.Series @Router /v1/internal/creator/series/{seriesid} [get]

func (*Store) GetVideo added in v0.9.6

func (s *Store) GetVideo(c echo.Context) error

GetVideo finds a video by ID

@Summary Get video by ID @Description Get a playlist including its children files. @ID get-creator-video @Tags creator-videos @Produce json @Param videoid path int true "Video ID" @Success 200 {object} video.Item @Router /v1/internal/creator/videos/{videoid} [get]

func (*Store) ListChannels added in v0.9.6

func (s *Store) ListChannels(c echo.Context) error

ListChannels handles listing channels @Summary List all channels @Description Lists all channels, these are a rough implementation of what is to come (linear channels) @ID get-creator-playout-channels @Tags creator-playout-channels @Produce json @Success 200 {array} playout.Channel @Router /v1/internal/creator/playout/channels [get]

func (*Store) ListEncodeFormats added in v0.9.6

func (s *Store) ListEncodeFormats(c echo.Context) error

ListEncodeFormats handles listing encode formats @Summary List all encode formats @Description Lists all encode formats, these are instructions for the encoder to create the video @ID get-creator-encode-format @Tags creator-encodes @Produce json @Success 200 {array} encode.Format @Router /v1/internal/creator/encode/format [get]

func (*Store) ListEncodePresets added in v0.9.6

func (s *Store) ListEncodePresets(c echo.Context) error

ListEncodePresets handles listing presets @Summary List all encode presets @Description Lists all encode presets, these are groups of instructions (formats) for the encoder to create the video @ID get-creator-encode-preset @Tags creator-encodes @Produce json @Success 200 {array} encode.Preset @Router /v1/internal/creator/encode/preset [get]

func (*Store) ListPlaylists added in v0.9.6

func (s *Store) ListPlaylists(c echo.Context) error

ListPlaylists handles listing all playlist metadata @Summary List all playlists @Description Lists all playlists, doesn't include videos inside. @ID get-creator-playlists-all @Tags creator-playlists @Produce json @Success 200 {array} playlist.Playlist @Router /v1/internal/creator/playlist [get]

func (*Store) ListSeries added in v0.9.6

func (s *Store) ListSeries(c echo.Context) error

ListSeries handles listing every series and their depth @Summary List all series @Description Lists all series, doesn't include videos inside. @ID get-creator-series-all @Tags creator-series @Produce json @Success 200 {array} series.Meta @Router /v1/internal/creator/series [get]

func (*Store) ListVideos added in v0.9.6

func (s *Store) ListVideos(c echo.Context) error

ListVideos Handles listing all creations

@Summary List all videos @Description Lists all videos, doesn't include files inside. @ID get-creator-videos-all @Tags creator-videos @Produce json @Success 200 {array} video.Meta @Router /v1/internal/creator/video [get]

func (*Store) ListVideosByMonth added in v0.9.6

func (s *Store) ListVideosByMonth(c echo.Context) error

ListVideosByMonth Handles listing all videos from a calendar year/month

@Summary List videos by month @Description Lists videos by month. @ID get-creator-videos-calendar @Tags creator-videos @Produce json @Param year path int true "year" @Param month path int true "month" @Success 200 {array} video.MetaCal @Router /v1/internal/creator/calendar/{year}/{month} [get]

func (*Store) ListVideosByUser added in v0.9.6

func (s *Store) ListVideosByUser(c echo.Context) error

ListVideosByUser Handles retrieving a user's videos using their userid in their token.

@Summary List all videos created by user ID @Description Lists all videos, doesn't include files inside. Use the createdBy user ID. @ID get-creator-videos-user @Tags creator-videos @Produce json @Success 200 {array} video.Meta @Router /v1/internal/creator/video/my [get]

func (*Store) NewChannel added in v0.9.6

func (s *Store) NewChannel(c echo.Context) error

NewChannel handles creating a new channel @Summary New channel @Description creates a new channel. @ID new-creator-playout-channel @Tags creator-playout-channels @Accept json @Param channel body playout.Channel true "Channel object" @Success 201 body int "Channel ID" @Router /v1/internal/creator/playout/channel [post]

func (*Store) NewEncodeFormat added in v0.9.6

func (s *Store) NewEncodeFormat(c echo.Context) error

NewEncodeFormat handles creating a new encode format @Summary New encode format @Description creates a new encode format. @ID new-creator-encode-format @Tags creator-encodes @Accept json @Param format body encode.Format true "Encode format object" @Success 201 body int "Format ID" @Router /v1/internal/creator/encode/format [post]

func (*Store) NewEncodePreset added in v0.9.6

func (s *Store) NewEncodePreset(c echo.Context) error

NewEncodePreset handles creating a new preset @Summary New preset @Description creates a new preset. @ID new-creator-encode-preset @Tags creator-encodes @Accept json @Param event body encode.Preset true "Preset object" @Success 201 body int "Preset ID" @Router /v1/internal/creator/encode/preset [post]

func (*Store) NewPlaylist added in v0.9.6

func (s *Store) NewPlaylist(c echo.Context) error

NewPlaylist handles creating a new playlist item @Summary New playlist @Description creates a new playlist with optional video ID's. @ID new-creator-playlist @Tags creator-playlists @Accept json @Param event body playlist.New true "New Playlist object" @Success 201 body int "Playlist ID" @Router /v1/internal/creator/playlist [post]

func (*Store) NewVideo added in v0.9.6

func (s *Store) NewVideo(c echo.Context) error

NewVideo Handles creation of a video

@Summary New video @Description creates a new video, requires the file ID/name to find it in CDN. @ID new-creator-video @Tags creator-videos @Accept json @Param event body video.New true "NewVideo object" @Success 201 body int "Video ID" @Router /v1/internal/creator/videos [post]

func (*Store) SearchVideo added in v0.9.6

func (s *Store) SearchVideo(c echo.Context) error

SearchVideo Handles listing appropriate videos from the relevant search

@Summary Search videos @Description Search videos. @ID search-creator-videos @Tags creator-videos @Produce json @Param searchInput body searchInput true "Search Input object" @Success 200 {array} video.Meta @Router /v1/internal/creator/video/search [post]

func (*Store) Stats added in v0.9.6

func (s *Store) Stats(c echo.Context) error

Stats handle sending general stats about the video library @Summary Get global video library information @Description Gets the statistics about the global video library. @ID get-creator-glob-stats @Tags creator @Produce json @Success 200 {object} stats.VideoGlobalStats @Router /v1/internal/creator/stats [get]

func (*Store) UpdateChannel added in v0.9.6

func (s *Store) UpdateChannel(c echo.Context) error

UpdateChannel handles updating a Channel @Summary Update a channel @Description updates a channel @ID update-creator-playout-channel @Tags creator-playout-channels @Accept json @Param channel body playout.Channel true "Channel object" @Success 200 @Router /v1/internal/creator/playout/channel [put]

func (*Store) UpdateEncodeFormat added in v0.9.6

func (s *Store) UpdateEncodeFormat(c echo.Context) error

UpdateEncodeFormat handles updating a format @Summary Update a format @Description updates a format @ID update-creator-encode-format @Tags creator-encodes @Accept json @Param format body encode.Format true "Format object" @Success 200 @Router /v1/internal/creator/encode/format [put]

func (*Store) UpdateEncodePreset added in v0.9.6

func (s *Store) UpdateEncodePreset(c echo.Context) error

UpdateEncodePreset handles updating a preset @Summary Update a preset @Description updates a preset @ID update-creator-encode-preset @Tags creator-encodes @Accept json @Param quote body encode.Preset true "Preset object" @Success 200 @Router /v1/internal/creator/encode/preset [put]

func (*Store) UpdatePlaylist added in v0.9.6

func (s *Store) UpdatePlaylist(c echo.Context) error

UpdatePlaylist handles updating a playlist @Summary Update playlist @Description Update a playlist, video ID's required otherwise it will remove all videos. @ID update-creator-playlist @Tags creator-playlists @Accept json @Param quote body playlist.Playlist true "Playlist object" @Success 200 @Router /v1/internal/creator/playlist [put]

func (*Store) UpdateSeries added in v0.9.6

func (s *Store) UpdateSeries(c echo.Context) error

UpdateSeries handles updating a series @Summary UpdatePlaylist series @Description UpdatePlaylist a series, video ID's required otherwise it will remove all videos. @ID update-creator-series @Tags creator-series @Accept json @Param quote body series.Series true "Series object" @Success 200 @Router /v1/internal/creator/series [put]

func (*Store) UpdateVideoMeta added in v0.9.6

func (s *Store) UpdateVideoMeta(c echo.Context) error

UpdateVideoMeta updates a video's metadata not files

@Summary Update video meta @Description Updates a video metadata @ID update-creator-video-meta @Tags creator-videos @Accept json @Param event body video.Meta true "VideoItem meta object" @Success 200 body int "Video ID" @Router /v1/internal/creator/video/meta [put]

type VideoRepo added in v0.9.6

type VideoRepo interface {
	GetVideo(c echo.Context) error
	NewVideo(c echo.Context) error
	UpdateVideoMeta(c echo.Context) error
	DeleteVideo(c echo.Context) error
	ListVideos(c echo.Context) error
	ListVideosByUser(c echo.Context) error
	ListVideosByMonth(c echo.Context) error
	SearchVideo(c echo.Context) error
}

Repos represents all our data repositories

Jump to

Keyboard shortcuts

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