Documentation ¶
Overview ¶
Package vodmodule defines types and a Mapper type that provides the ability of mapping media content by a common prefix.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapOptions ¶
type MapOptions struct { Prefix string // Optional regexp that is used to filter the list of objects. Filter *regexp.Regexp }
MapOptions represents the set of options that can be passed to Map.
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
Mapper provides the ability of mapping objects on a GCS bucket in the format expected by nginx-vod-module.
func NewMapper ¶
func NewMapper(bucket *storage.BucketHandle) *Mapper
NewMapper returns a mapper that will map content for prefix in the given BucketHandle.
type Mapping ¶
type Mapping struct {
Sequences []Sequence `json:"sequences"`
}
Mapping represents the response expected by the vod-module.
See https://github.com/kaltura/nginx-vod-module#mapping-response-format.
Click to show internal directories.
Click to hide internal directories.