Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateLength ¶
CalculateLength returns the play duration of a media file like a .mp3
Types ¶
type Metadata ¶
type Metadata struct {
Name string `json:"name" yaml:"name"`
Size int64 `json:"size" yaml:"size"`
Duration int64 `json:"duration,omitempty" yaml:"duration,omitempty"`
ContentType string `json:"type" yaml:"type"`
Timestamp int64 `json:"timestamp" yaml:"timestamp"`
ETag string `json:"etag" yaml:"etag"`
}
Metadata keeps basic metadata of a cdn resource
func CreateMetadata ¶
func ExtractMetadataFromFile ¶
func ExtractMetadataFromHeader ¶
ExtractMetadataFromHeader extracts the metadata from http.Response
func LoadMetadataResource ¶
Click to show internal directories.
Click to hide internal directories.