import "41.neocities.org/media/draken"
type AuthLogin struct { Token string Raw []byte `json:"-"` }
func (a *AuthLogin) Entitlement(movie *FullMovie) (*Entitlement, error)
func (a *AuthLogin) New(identity, key string) error
func (a *AuthLogin) Playback( movie *FullMovie, title *Entitlement, ) (*Playback, error)
func (a *AuthLogin) Unmarshal() error
type Entitlement struct { Token string }
type FullMovie struct { DefaultPlayable struct { Id string } ProductionYear int `json:",string"` Title string }
func (f *FullMovie) New(custom_id string) error
type Namer struct { Movie *FullMovie }
func (Namer) Episode() int
func (Namer) Season() int
func (Namer) Show() string
func (n Namer) Title() string
func (n Namer) Year() int
type Playback struct { Headers map[string]string Playlist string }
type Poster struct { Login *AuthLogin Play *Playback }
func (p *Poster) RequestHeader() (http.Header, error)
func (*Poster) RequestUrl() (string, bool)
func (*Poster) UnwrapResponse(b []byte) ([]byte, error)
func (*Poster) WrapRequest(b []byte) ([]byte, error)
draken.go