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) FetchOriginContent ¶ added in v0.1.14
func (d *DefaultOrigin) FetchOriginContent(ctx context.Context, c config.Client) (OriginContentInfo, error)
FetchOriginContent 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 Origin ¶
type Origin interface {
GetPlaybackURL() string
FetchOriginContent(ctx context.Context, c config.Client) (OriginContentInfo, error)
}
Origin interface is implemented by DefaultOrigin and Propeller struct
type OriginContentInfo ¶ added in v0.1.14
OriginContentInfo holds http response info from manifest request
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) FetchOriginContent ¶ added in v0.1.14
func (p *Propeller) FetchOriginContent(ctx context.Context, c config.Client) (OriginContentInfo, error)
FetchOriginContent will grab manifest contents of configured origin
func (*Propeller) GetPlaybackURL ¶
GetPlaybackURL will retrieve url