Versions in this module Expand all Collapse all v0 v0.2.0 Feb 15, 2019 Changes in this version + const AllPresets + const UIPresets + const UserPresets + type APIError struct + Errors []string + Message string + func (apiErr *APIError) Error() string + type APIStatusResponse struct + Incident string + Status string + StatusCode string + func APIStatus(endpoint string) (*APIStatusResponse, error) + func (s *APIStatusResponse) OK() bool + type AddMediaResponse struct + MediaID string + Message string + type Client struct + Endpoint string + UserID string + UserKey string + func NewClient(endpoint, userID, userKey string) (*Client, error) + func (c *Client) AddMedia(source []string, format []Format, region string) (*AddMediaResponse, error) + func (c *Client) CancelMedia(mediaID string) (*Response, error) + func (c *Client) DeletePreset(name string) (*Response, error) + func (c *Client) GetMediaInfo(mediaID string) (*MediaInfo, error) + func (c *Client) GetPreset(name string) (*Preset, error) + func (c *Client) GetStatus(mediaIDs []string, extended bool) ([]StatusResponse, error) + func (c *Client) ListMedia() (*ListMediaResponse, error) + func (c *Client) ListPresets(presetType PresetType) (*ListPresetsResponse, error) + func (c *Client) RestartMedia(mediaID string, withErrors bool) (*Response, error) + func (c *Client) RestartMediaTask(mediaID string, taskID string) (*Response, error) + func (c *Client) SavePreset(name string, format Format) (*SavePresetResponse, error) + func (c *Client) StopMedia(mediaID string) (*Response, error) + type DestinationStatus struct + Name string + Status string + type Format struct + AddMeta YesNoBoolean + AudioBitrate string + AudioChannelsNumber string + AudioCodec string + AudioSampleRate uint + AudioSync string + AudioVolume uint + Bframes int + Bitrate string + BufSize string + CropBottom int + CropLeft int + CropRight int + CropTop int + Destination []string + Duration string + FadeIn string + FadeOut string + ForceInterlaced string + ForceKeyframes string + Framerate string + FramerateUpperThreshold string + Gop string + Hint YesNoBoolean + KeepAspectRatio YesNoBoolean + Keyframe []string + Logo *Logo + MaxRate string + Metadata *Metadata + MinRate string + NoiseReduction string + Output []string + OutputPreset string + Overlay []Overlay + PackFiles *YesNoBoolean + Profile string + RcInitOccupancy string + Rotate string + SegmentDuration uint + SetAspectRatio string + SetRotate string + Size string + Start string + Stream []Stream + StripChapters YesNoBoolean + TextOverlay []TextOverlay + Turbo YesNoBoolean + TwinTurbo YesNoBoolean + TwoPass YesNoBoolean + VideoCodec string + VideoCodecParameters VideoCodecParameters + VideoSync string + type FormatStatus struct + AudioCodec string + Bitrate string + CFDestination string + CreateDate time.Time + Description string + Destinations []DestinationStatus + FileSize string + FinishDate time.Time + ID string + Output string + S3Destination string + Size string + StartDate time.Time + Status string + Stream []Stream + VideoCodec string + type ListMediaResponse struct + Media []ListMediaResponseItem + type ListMediaResponseItem struct + CreateDate MediaDateTime + FinishDate MediaDateTime + MediaFile string + MediaID string + MediaStatus string + StartDate MediaDateTime + type ListPresetsResponse struct + UIPresets []Preset + UserPresets []Preset + type Logo struct + LogoMode int + LogoSourceURL string + LogoThreshold string + LogoX int + LogoY int + type MediaDateTime struct + func (mdt *MediaDateTime) UnmarshalJSON(b []byte) (err error) + type MediaInfo struct + AudioBitrate string + AudioChannels string + AudioCodec string + AudioSampleRate uint + Bitrate string + DisplayAspectRatio string + Duration time.Duration + Framerate string + PixelAspectRatio string + Rotation uint + Size string + VideoBitrate string + VideoCodec string + type Metadata struct + Album string + Author string + Copyright string + Description string + Title string + type Overlay struct + OverlayBottom string + OverlayDuration float64 + OverlayLeft string + OverlayRight string + OverlaySource string + OverlayStart float64 + OverlayTop string + Size string + type Preset struct + Format PresetFormat + Name string + Output string + Type PresetType + type PresetFormat struct + AddMeta YesNoBoolean + AudioBitrate string + AudioChannelsNumber string + AudioCodec string + AudioSampleRate uint + AudioSync string + AudioVolume uint + Bframes int + Bitrate string + BufSize string + CropBottom int + CropLeft int + CropRight int + CropTop int + Duration string + FadeIn string + FadeOut string + ForceInterlaced string + ForceKeyframes string + Framerate string + FramerateUpperThreshold string + Gop string + Hint YesNoBoolean + KeepAspectRatio YesNoBoolean + Keyframe string + Logo *Logo + MaxRate string + Metadata *Metadata + MinRate string + NoiseReduction string + Output string + Profile string + RcInitOccupancy string + Rotate string + SegmentDuration string + SetAspectRatio string + SetRotate string + Size string + Start string + StreamRawMap interface{} + StripChapters YesNoBoolean + Turbo YesNoBoolean + TwinTurbo YesNoBoolean + TwoPass YesNoBoolean + VideoCodec string + VideoCodecParameters interface{} + VideoSync string + func (p PresetFormat) Stream() []Stream + type PresetType string + type Response struct + Message string + type SavePresetResponse struct + SavedPreset string + type SplitScreen struct + Columns int + PaddingBottom int + PaddingLeft int + PaddingRight int + PaddingTop int + Rows int + type StatusResponse struct + CreateDate time.Time + DownloadDate time.Time + FinishDate time.Time + Formats []FormatStatus + MediaID string + MediaStatus string + NotifyURL string + PreviousMediaStatus string + Progress float64 + ProgressCurrentJob float64 + SourceFile string + StartDate time.Time + TimeLeft string + TimeLeftCurrentJob string + UploadDate time.Time + UserID string + type Stream struct + AddIframeStream YesNoBoolean + AudioBitrate string + AudioChannelsNumber string + AudioCodec string + AudioOnly YesNoBoolean + AudioSampleRate uint + AudioVolume uint + Bitrate string + ByteRange YesNoBoolean + Cbr YesNoBoolean + CopyNielsenMetadata YesNoBoolean + CopyTimestamps YesNoBoolean + Deinterlacing string + DownmixMode string + DurationPrecision uint + Encoder string + Encryption YesNoBoolean + EncryptionMethod string + Framerate uint + HardCbr YesNoBoolean + Hint YesNoBoolean + KeepAspectRatio YesNoBoolean + Keyframe string + MediaPath string + MetadataCopy YesNoBoolean + PixFormat string + Profile string + Rotate string + SetRotate string + Size string + StillImage YesNoBoolean + StillImageSize string + StillImageTime string + StripChapters YesNoBoolean + SubPath string + TwoPass YesNoBoolean + VeryFast string + VideoCodec string + VideoCodecParametersRaw interface{} + VideoOnly YesNoBoolean + VideoSync string + func (s Stream) VideoCodecParameters() VideoCodecParameters + type TextOverlay struct + AlignCenter ZeroOneBoolean + FontColor string + FontRotate int + FontSize uint + FontSourceURL string + OverlayDuration float64 + OverlayStart float64 + OverlayX int + OverlayY int + Size string + Text []string + type VideoCodecParameters struct + Bstrategy string + Cmp string + Coder string + DirectPred string + Flags string + Flags2 string + Iqfactor string + KeyIntMin string + Level string + MeMethod string + MeRange string + Partitions string + Qcomp string + Qdiff string + Qmax string + Qmin string + ScThreshold string + Subq string + Vprofile string + type YesNoBoolean bool + func (b *YesNoBoolean) UnmarshalJSON(data []byte) error + func (b YesNoBoolean) MarshalJSON() ([]byte, error) + type ZeroOneBoolean bool + func (b *ZeroOneBoolean) UnmarshalJSON(data []byte) error + func (b ZeroOneBoolean) MarshalJSON() ([]byte, error)