Package rtbf
(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)
},
}
Functions
func FetchAssetId(path string) (string, error)
func GetPath(rawUrl string) (string, error)
Types
type Byte
type Byte[T any] []byte
type Entitlement
type Entitlement struct {
AssetId string
Formats []Format
Message string
PlayToken string
}
Methods
func (e *Entitlement) Dash() (*Format, bool)
func (e *Entitlement) Unmarshal(data Byte[Entitlement]) error
func (e *Entitlement) Widevine(data []byte) ([]byte, error)
type Format struct {
Format string
MediaLocator string
}
type GigyaLogin
type GigyaLogin struct {
SessionToken string
}
Methods
func (g *GigyaLogin) Entitlement(assetId string) (Byte[Entitlement], error)
type Jwt
type Jwt struct {
ErrorMessage string
IdToken string `json:"id_token"`
}
Methods
func (j *Jwt) Login() (*GigyaLogin, error)
type Login
type Login struct {
ErrorMessage string
SessionInfo struct {
CookieValue string
}
}
Methods
func (l *Login) Jwt() (*Jwt, error)
func (l *Login) Unmarshal(data Byte[Login]) error