Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultOrigin ¶ added in v0.1.5
DefaultOrigin struct holds Origin and Path of DefaultOrigin Variant level DefaultOrigins will be base64 encoded absolute Urls
func NewDefaultOrigin ¶ added in v0.1.5
func NewDefaultOrigin(host string, p string) (*DefaultOrigin, error)
NewDefaultOrigin returns a new Origin struct host is not required if path is absolute
func (*DefaultOrigin) FetchManifest ¶ added in v0.1.5
func (d *DefaultOrigin) FetchManifest(c config.Client) (ManifestInfo, error)
FetchManifest will grab DefaultOrigin contents of configured origin
func (*DefaultOrigin) GetPlaybackURL ¶ added in v0.1.5
func (d *DefaultOrigin) GetPlaybackURL() string
GetPlaybackURL will retrieve url
type ManifestInfo ¶ added in v0.1.5
ManifestInfo holds http response info from manifest request
type Origin ¶
type Origin interface {
GetPlaybackURL() string
FetchManifest(c config.Client) (ManifestInfo, error)
}
Origin interface is implemented by DefaultOrigin and Propeller struct
type Propeller ¶
type Propeller struct {
URL string
}
Propeller Origin holds the URL of a propeller entity (Channel, Clip)
func NewPropeller ¶
NewPropeller returns a Propeller origin struct
func (*Propeller) FetchManifest ¶
func (p *Propeller) FetchManifest(c config.Client) (ManifestInfo, error)
FetchManifest will grab manifest contents of configured origin
func (*Propeller) GetPlaybackURL ¶
GetPlaybackURL will retrieve url