type AccountActivation struct { Code string `json:"code"` }
func CreateAccountActivation(token *AccountToken) (*AccountActivation, error)
func (*AccountActivation) CachePath() string
func (a *AccountActivation) String() string
type AccountToken struct { AuthToken string `json:"authToken"` IsLoggedIn bool `json:"isLoggedIn"` Ip string `json:"ip"` Rida string `json:"rida"` }
func GetAccountToken(status *ActivationStatus) (*AccountToken, error)
status can be nil
func (*AccountToken) CachePath() string
type ActivationStatus struct { Code string `json:"code"` Token string `json:"token"` CreatedAt int64 `json:"createdAt"` Profiles []Profile `json:"profiles"` Platform string `json:"platform"` Status string `json:"status"` }
func GetActivationStatus(token *AccountToken, activation *AccountActivation) (*ActivationStatus, error)
func (*ActivationStatus) CachePath() string
type Drm struct { Widevine Widevine `json:"widevine"` }
type Playback struct { Url string // MPD Drm Drm `json:"drm"` MediaFormat string `json:"mediaFormat"` TraceId string `json:"traceId"` }
func GetPlayback(token *AccountToken, rokuId string) (*Playback, error)
func (*Playback) CachePath() string
func (p *Playback) LicenseWidevine(challenge []byte) ([]byte, error)
type Profile struct { Id string `json:"id"` IsKids bool `json:"isKids"` IsOwner bool `json:"isOwner"` }
type Widevine struct { LicenseServer string `json:"licenseServer"` }