Versions in this module Expand all Collapse all v0 v0.5.2 Sep 8, 2020 Changes in this version + type Account struct + Features []string + Quota *Quota + type AccountService struct + func (s *AccountService) Get() (*Account, error) + type AccountServiceI interface + Get func() (*Account, error) + type Assets struct + Hls string + Iframe string + Mp4 string + Player string + Thumbnail string + type Caption struct + Default bool + Src string + Srclang string + URI string + type CaptionList struct + Data []Caption + Pagination *Pagination + type CaptionRequest struct + Default bool + type CaptionsService struct + func (s *CaptionsService) Delete(videoID string, language string) error + func (s *CaptionsService) Get(videoID string, language string) (*Caption, error) + func (s *CaptionsService) List(videoID string) (*CaptionList, error) + func (s *CaptionsService) Update(videoID string, language string, updateRequest *CaptionRequest) (*Caption, error) + func (s *CaptionsService) Upload(videoID string, language string, filePath string) (*Caption, error) + type CaptionsServiceI interface + Delete func(videoID string, language string) error + Get func(videoID string, language string) (*Caption, error) + List func(videoID string) (*CaptionList, error) + Update func(videoID string, language string, updateRequest *CaptionRequest) (*Caption, error) + Upload func(videoID string, language string, filepath string) (*Caption, error) + type Chapter struct + Language string + Src string + URI string + type ChapterList struct + Data []Chapter + Pagination *Pagination + type ChaptersService struct + func (s *ChaptersService) Delete(videoID string, language string) error + func (s *ChaptersService) Get(videoID string, language string) (*Chapter, error) + func (s *ChaptersService) List(videoID string) (*ChapterList, error) + func (s *ChaptersService) Upload(videoID string, language string, filePath string) (*Chapter, error) + type ChaptersServiceI interface + Delete func(videoID string, language string) error + Get func(videoID string, language string) (*Chapter, error) + List func(videoID string) (*ChapterList, error) + Upload func(videoID string, language string, filepath string) (*Chapter, error) + type Client struct + APIKey string + Account AccountServiceI + BaseURL *url.URL + Captions CaptionsServiceI + Chapters ChaptersServiceI + Livestreams LivestreamsServiceI + Players PlayersServiceI + Statistics StatisticsServiceI + Token *Token + UploadTokens UploadTokensServiceI + Videos VideosServiceI + func NewClient(apiKey string) *Client + func NewSandboxClient(apiKey string) *Client + func (c *Client) ChunkSize(size int64) + type Device struct + Model string + Type string + Vendor string + type Encoding struct + Metadata *EncodingMetadata + Playable bool + Qualities []Quality + type EncodingMetadata struct + AspectRatio string + AudioCodec string + Bitrate int + Duration int + Framerate int + Height int + Samplerate int + VideoCodec string + Width int + type ErrorResponse struct + Name string + Response *http.Response + Title string + Type string + func (r *ErrorResponse) Error() string + type Ingest struct + Filesize int + ReceivedBytes []ReceivedBytesItem + Status string + type Link struct + Rel string + URI string + type Livestream struct + Assets *Assets + Broadcasting bool + LivestreamID string + Name string + PlayerID string + Record bool + StreamKey string + type LivestreamList struct + Data []Livestream + Pagination *Pagination + type LivestreamOpts struct + CurrentPage int + PageSize int + StreamKey string + type LivestreamRequest struct + Name string + PlayerID string + Record bool + type LivestreamsService struct + func (s *LivestreamsService) Create(createRequest *LivestreamRequest) (*Livestream, error) + func (s *LivestreamsService) Delete(livestreamID string) error + func (s *LivestreamsService) DeleteThumbnail(livestreamID string) (*Livestream, error) + func (s *LivestreamsService) Get(livestreamID string) (*Livestream, error) + func (s *LivestreamsService) List(opts *LivestreamOpts) (*LivestreamList, error) + func (s *LivestreamsService) Update(livestreamID string, updateRequest *LivestreamRequest) (*Livestream, error) + func (s *LivestreamsService) UploadThumbnail(livestreamID string, filePath string) (*Livestream, error) + type LivestreamsServiceI interface + Create func(createRequest *LivestreamRequest) (*Livestream, error) + Delete func(livestreamID string) error + DeleteThumbnail func(livestreamID string) (*Livestream, error) + Get func(livestreamID string) (*Livestream, error) + List func(opts *LivestreamOpts) (*LivestreamList, error) + Update func(livestreamID string, updateRequest *LivestreamRequest) (*Livestream, error) + UploadThumbnail func(livestreamID string, filePath string) (*Livestream, error) + type Location struct + City string + Country string + type Metadata struct + Key string + Value string + type Os struct + Name string + Shortname string + Version string + type Pagination struct + CurrentPage int + CurrentPageItems int + ItemsTotal int + Links []Link + PageSize int + PagesTotal int + type Player struct + Assets *PlayerAssets + BackgroundBottom string + BackgroundText string + BackgroundTop string + EnableAPI bool + EnableControls bool + ForceAutoplay bool + ForceLoop bool + HideTitle bool + Link string + LinkActive string + LinkHover string + PlayerID string + ShapeAspect string + ShapeBackgroundBottom string + ShapeBackgroundTop string + ShapeMargin int + ShapeRadius int + Text string + TrackBackground string + TrackPlayed string + TrackUnplayed string + type PlayerAssets struct + Link string + Logo string + type PlayerList struct + Data []Player + Pagination *Pagination + type PlayerOpts struct + CurrentPage int + PageSize int + type PlayerRequest struct + BackgroundBottom string + BackgroundText string + BackgroundTop string + EnableAPI bool + EnableControls bool + ForceAutoplay bool + ForceLoop bool + HideTitle bool + Link string + LinkActive string + LinkHover string + ShapeAspect string + ShapeBackgroundBottom string + ShapeBackgroundTop string + ShapeMargin int + ShapeRadius int + Text string + TrackBackground string + TrackPlayed string + TrackUnplayed string + type PlayersService struct + func (s *PlayersService) Create(createRequest *PlayerRequest) (*Player, error) + func (s *PlayersService) Delete(playerID string) error + func (s *PlayersService) DeleteLogo(playerID string) error + func (s *PlayersService) Get(PlayerID string) (*Player, error) + func (s *PlayersService) List(opts *PlayerOpts) (*PlayerList, error) + func (s *PlayersService) Update(playerID string, updateRequest *PlayerRequest) (*Player, error) + func (s *PlayersService) UploadLogo(playerID string, link string, filePath string) (*Player, error) + type PlayersServiceI interface + Create func(createRequest *PlayerRequest) (*Player, error) + Delete func(playerID string) error + DeleteLogo func(playerID string) error + Get func(playerID string) (*Player, error) + List func(opts *PlayerOpts) (*PlayerList, error) + Update func(playerID string, updateRequest *PlayerRequest) (*Player, error) + UploadLogo func(playerID string, link string, filepath string) (*Player, error) + type Quality struct + Quality string + Status string + type Quota struct + QuotaRemaining int + QuotaTotal int + QuotaUsed int + type ReceivedBytesItem struct + From int + To int + Total int + type Referrer struct + Medium string + SearchTerm string + Source string + URL string + type SessClient struct + Name string + Type string + Version string + type Session struct + EndedAt string + LoadedAt string + Metadata map[string]string + SessionID string + type SessionEvent struct + At int + EmittedAt string + From int + To int + Type string + type SessionEventList struct + Data []SessionEvent + Pagination *Pagination + type SessionEventOpts struct + CurrentPage int + PageSize int + type SessionLivestreamOpts struct + CurrentPage int + PageSize int + Period string + type SessionVideoOpts struct + CurrentPage int + Metadata map[string]string + PageSize int + Period string + type Source struct + Livestream *VideoLivestream + Type string + URI string + type Statistic struct + Device *Device + Location *Location + Os *Os + Referrer *Referrer + SessClient *SessClient + Session *Session + type StatisticList struct + Data []Statistic + Pagination *Pagination + type StatisticsService struct + func (s *StatisticsService) GetLivestreamSessions(livestreamID string, opts *SessionLivestreamOpts) (*StatisticList, error) + func (s *StatisticsService) GetSessionEvents(sessionID string, opts *SessionEventOpts) (*SessionEventList, error) + func (s *StatisticsService) GetVideoSessions(videoID string, opts *SessionVideoOpts) (*StatisticList, error) + type StatisticsServiceI interface + GetLivestreamSessions func(LivestreamID string, opts *SessionLivestreamOpts) (*StatisticList, error) + GetSessionEvents func(SessionID string, opts *SessionEventOpts) (*SessionEventList, error) + GetVideoSessions func(videoID string, opts *SessionVideoOpts) (*StatisticList, error) + type Token struct + AccessToken string + ExpireTime time.Time + ExpiresIn int + RefreshToken string + TokenType string + type UploadToken struct + Token string + type UploadTokensService struct + func (s *UploadTokensService) Generate() (*UploadToken, error) + type UploadTokensServiceI interface + Generate func() (*UploadToken, error) + type Video struct + Assets *Assets + Description string + Metadata []Metadata + Mp4Support bool + Panoramic bool + PlayerID string + Public bool + PublishedAt string + Source *Source + Tags []string + Title string + UpdatedAt string + VideoID string + type VideoList struct + Data []Video + Pagination *Pagination + type VideoLivestream struct + Links []Link + LivestreamID string + type VideoOpts struct + CurrentPage int + Description string + LivestreamID string + Metadata map[string]string + PageSize int + SortBy string + SortOrder string + Tags []string + Title string + type VideoRequest struct + Description string + Metadata []Metadata + Mp4Support bool + Panoramic bool + PlayerID string + Public bool + Source string + Tags []string + Title string + type VideoStatus struct + Encoding *Encoding + Ingest *Ingest + type VideosService struct + func (s *VideosService) Create(createRequest *VideoRequest) (*Video, error) + func (s *VideosService) Delete(videoID string) error + func (s *VideosService) Get(videoID string) (*Video, error) + func (s *VideosService) List(opts *VideoOpts) (*VideoList, error) + func (s *VideosService) PickThumbnail(videoID string, timecode string) (*Video, error) + func (s *VideosService) Status(videoID string) (*VideoStatus, error) + func (s *VideosService) Update(videoID string, updateRequest *VideoRequest) (*Video, error) + func (s *VideosService) Upload(videoID string, filePath string) (*Video, error) + func (s *VideosService) UploadThumbnail(videoID string, filePath string) (*Video, error) + type VideosServiceI interface + Create func(createRequest *VideoRequest) (*Video, error) + Delete func(videoID string) error + Get func(videoID string) (*Video, error) + List func(opts *VideoOpts) (*VideoList, error) + PickThumbnail func(videoID string, timecode string) (*Video, error) + Status func(videoID string) (*VideoStatus, error) + Update func(videoID string, updateRequest *VideoRequest) (*Video, error) + Upload func(videoID string, filePath string) (*Video, error) + UploadThumbnail func(videoID string, filePath string) (*Video, error)