Documentation
¶
Index ¶
- type Client
- func (c *Client) GetMyProject(id int, params ...QueryParam) (*Project, error)
- func (c *Client) GetProjectOfUser(u, id int, params ...QueryParam) (*Project, error)
- func (c *Client) GetVideo(id int, params ...QueryParam) (*Video, error)
- func (c *Client) ListMyProjectVideos(id int, params ...QueryParam) (*VimeoResponse[Video], error)
- func (c *Client) ListMyProjects(params ...QueryParam) (*VimeoResponse[Project], error)
- func (c *Client) ListProjectVideosOfUser(u, id int, params ...QueryParam) (*VimeoResponse[Video], error)
- func (c *Client) ListProjectsOfUser(u int, params ...QueryParam) (*VimeoResponse[Project], error)
- func (c *Client) ListVideoTexttracks(id int, params ...QueryParam) (*VimeoResponse[Texttrack], error)
- type Error
- type Fields
- type Page
- type PerPage
- type Project
- type QueryParam
- type RateLimit
- type Texttrack
- type User
- type Video
- type VimeoFile
- type VimeoOptions
- type VimeoPaging
- type VimeoPictures
- type VimeoPrivacy
- type VimeoResponse
- type VimeoSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetMyProject ¶
func (c *Client) GetMyProject(id int, params ...QueryParam) (*Project, error)
func (*Client) GetProjectOfUser ¶
func (c *Client) GetProjectOfUser(u, id int, params ...QueryParam) (*Project, error)
func (*Client) ListMyProjectVideos ¶
func (c *Client) ListMyProjectVideos(id int, params ...QueryParam) (*VimeoResponse[Video], error)
func (*Client) ListMyProjects ¶
func (c *Client) ListMyProjects(params ...QueryParam) (*VimeoResponse[Project], error)
func (*Client) ListProjectVideosOfUser ¶
func (c *Client) ListProjectVideosOfUser(u, id int, params ...QueryParam) (*VimeoResponse[Video], error)
func (*Client) ListProjectsOfUser ¶
func (c *Client) ListProjectsOfUser(u int, params ...QueryParam) (*VimeoResponse[Project], error)
func (*Client) ListVideoTexttracks ¶
func (c *Client) ListVideoTexttracks(id int, params ...QueryParam) (*VimeoResponse[Texttrack], error)
type Project ¶
type Project struct { CreatedTime time.Time `json:"created_time,omitempty"` ModifiedTime time.Time `json:"modified_time,omitempty"` LastUserActionEventDate time.Time `json:"last_user_action_event_date,omitempty"` Name string `json:"name,omitempty"` Privacy VimeoPrivacy `json:"privacy,omitempty"` ResourceKey string `json:"resource_key,omitempty"` URI string `json:"uri,omitempty"` Link string `json:"link,omitempty"` ManageLink string `json:"manage_link,omitempty"` PinnedOn string `json:"pinned_on"` IsPinned bool `json:"is_pinned,omitempty"` IsPrivateToUser bool `json:"is_private_to_user,omitempty"` User User `json:"user,omitempty"` AccessGrant string `json:"access_grant,omitempty"` }
type QueryParam ¶
type QueryParam interface {
Get() (key, value string)
}
type Texttrack ¶
type Texttrack struct { Uri string `json:"uri,omitempty"` Active bool `json:"active,omitempty"` Type string `json:"type,omitempty"` Language string `json:"language,omitempty"` DisplayLanguage string `json:"display_language,omitempty"` Id int `json:"id,omitempty"` Link string `json:"link,omitempty"` LinkExpiresTime int `json:"link_expires_time,omitempty"` HLSLink string `json:"hls_link,omitempty"` HLSLinkExpiresTime int `json:"hls_link_expires_time,omitempty"` Name string `json:"name,omitempty"` }
type Video ¶
type Video struct { URI string `json:"uri,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Type string `json:"type,omitempty"` Link string `json:"link,omitempty"` Duration int `json:"duration,omitempty"` Width int `json:"width,omitempty"` Height int `json:"height,omitempty"` Language string `json:"language,omitempty"` Options VimeoOptions `json:"options,omitempty"` Total int `json:"total,omitempty"` Files []VimeoFile `json:"files,omitempty"` Pictures VimeoPictures `json:"pictures,omitempty"` }
type VimeoFile ¶
type VimeoFile struct { Quality string `json:"quality,omitempty"` Rendition string `json:"rendition,omitempty"` Type string `json:"type,omitempty"` Width int `json:"width,omitempty"` Height int `json:"height,omitempty"` Link string `json:"link,omitempty"` CreatedTime time.Time `json:"created_time,omitempty"` FPS int `json:"fps,omitempty"` Size int `json:"size,omitempty"` MD5 string `json:"md5,omitempty"` PublicName string `json:"public_name,omitempty"` SizeShort string `json:"size_short"` }
type VimeoOptions ¶
type VimeoOptions []string
type VimeoPaging ¶
type VimeoPictures ¶
type VimeoPrivacy ¶
type VimeoPrivacy struct {
View string `json:"view,omitempty"`
}
type VimeoResponse ¶
type VimeoResponse[T any] struct { Total int `json:"total,omitempty"` Page int `json:"page,omitempty"` PerPage int `json:"per_page,omitempty"` Paging VimeoPaging `json:"paging,omitempty"` Data []T `json:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.