Package criterion
(v1.10.6)
[repository]
Index
Variables
var Transport = http.Transport{
Proxy: func(req *http.Request) (*url.URL, error) {
log.Println(req.Method, req.URL)
return http.ProxyFromEnvironment(req)
},
}
Types
type File
type File struct {
DrmAuthorizationToken string `json:"drm_authorization_token"`
Links struct {
Source struct {
Href string
}
} `json:"_links"`
Method string
}
Methods
func (f *File) Widevine(data []byte) ([]byte, error)
type Files
type Files []File
Methods
func (f Files) Dash() (*File, bool)
type Token
type Token struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
}
Methods
func (t *Token) Files(videoVar *Video) (Files, error)
func (t *Token) Refresh() (TokenData, error)
func (t *Token) Unmarshal(data TokenData) error
func (t *Token) Video(slug string) (*Video, error)
type TokenData
type TokenData []byte
type Video
type Video struct {
Links struct {
Files struct {
Href string
}
} `json:"_links"`
Message string
Name string
}