Documentation ¶
Index ¶
- Constants
- func Build(ctx context.Context, guid string, validateOnly bool) error
- func EnsureAsset(ctx context.Context, guid string, rsrc *a.Asset) error
- func ImportTaskEndpoint(c *gin.Context)
- func TransformToItem(e *a.Episode) (*rss.Item, error)
- func TransformToPodcast(s *a.Show) (*rss.Channel, error)
- type ContentMetadata
- type EpisodeList
Constants ¶
View Source
const (
// ImportTask route to ImportTaskEndpoint
ImportTask = "/import"
)
Variables ¶
This section is empty.
Functions ¶
func EnsureAsset ¶
EnsureAsset validates the existence of the asset and imports it if necessary
func ImportTaskEndpoint ¶
ImportTaskEndpoint implements async file import
func TransformToItem ¶
TransformToItem returns the episode struct needed for a podcast feed struct
Types ¶
type ContentMetadata ¶
type ContentMetadata struct { Size int64 Duration int64 ContentType string Etag string Timestamp int64 }
ContentMetadata keeps basic data on resource
type EpisodeList ¶
EpisodeList holds the list of valid episodes that will be added to a podcast
func (EpisodeList) Len ¶
func (e EpisodeList) Len() int
func (EpisodeList) Less ¶
func (e EpisodeList) Less(i, j int) bool
func (EpisodeList) Swap ¶
func (e EpisodeList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.