Package draken (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 Entitlement

type Entitlement struct {
	Error *struct {
		UserMessage string `json:"user_message"`
	}
	Token string
}

type Login

type Login struct {
	Token string
}

Methods

func (l Login) Entitlement(movieVar Movie) (*Entitlement, error)
func (l Login) Playback(movieVar *Movie, title *Entitlement) (*Playback, error)
func (l *Login) Unmarshal(data LoginData) error
func (l Login) Widevine(play *Playback, data []byte) ([]byte, error)

type LoginData

type LoginData []byte

type Movie

type Movie struct {
	Id string
}

Methods

func (m *Movie) Fetch(custom_id string) error

type Playback

type Playback struct {
	Headers  map[string]string
	Playlist string // MPD
}