Package roku (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 nil, nil
	},
}

Types

type AccountToken

type AccountToken struct {
	AuthToken string
}

Methods

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

type Activation struct {
	Code string
}

Methods

func (a *Activation) String() string
func (a *Activation) Unmarshal(data Byte[Activation]) error

type Byte

type Byte[T any] []byte

type Code

type Code struct {
	Token string
}

Methods

func (c *Code) AccountToken() (Byte[AccountToken], error)

code can be nil

func (c *Code) Unmarshal(data Byte[Code]) error

type Playback

type Playback struct {
	Drm struct {
		Widevine struct {
			LicenseServer string
		}
	}
	Url string // MPD
}

Methods

func (p *Playback) Unmarshal(data Byte[Playback]) error
func (p *Playback) Widevine(data []byte) ([]byte, error)