var Transport = http.Transport{ Proxy: func(req *http.Request) (*url.URL, error) { log.Println(req.Method, req.URL) return nil, nil }, }
type AccountToken struct { AuthToken string }
func (a *AccountToken) Activation() (Byte[Activation], error)
func (a *AccountToken) Code(act *Activation) (Byte[Code], error)
func (a *AccountToken) Playback(rokuId string) (Byte[Playback], error)
func (a *AccountToken) Unmarshal(data Byte[AccountToken]) error
type Activation struct { Code string }
func (a *Activation) String() string
func (a *Activation) Unmarshal(data Byte[Activation]) error
type Byte[T any] []byte
type Code struct { Token string }
func (c *Code) AccountToken() (Byte[AccountToken], error)
code can be nil
func (c *Code) Unmarshal(data Byte[Code]) error
type Playback struct { Drm struct { Widevine struct { LicenseServer string } } Url string // MPD }
func (p *Playback) Unmarshal(data Byte[Playback]) error
func (p *Playback) Widevine(data []byte) ([]byte, error)