kanopy

package
v1.10.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2025 License: OSL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Transport = http.Transport{
	Proxy: func(req *http.Request) (*url.URL, error) {
		log.Println(req.Method, req.URL)
		return nil, nil
	},
}

Functions

This section is empty.

Types

type Login added in v1.10.1

type Login struct {
	Jwt    string
	UserId int
}

good for 10 years

func (*Login) Membership added in v1.10.1

func (l *Login) Membership() (*Membership, error)

func (*Login) Plays added in v1.10.1

func (l *Login) Plays(member *Membership, videoId int) (*Plays, error)

func (*Login) Unmarshal added in v1.10.1

func (l *Login) Unmarshal(data LoginData) error

func (*Login) Widevine added in v1.10.1

func (l *Login) Widevine(manifestVar *Manifest, data []byte) ([]byte, error)

type LoginData added in v1.10.6

type LoginData []byte

func FetchLogin added in v1.10.6

func FetchLogin(email, password string) (LoginData, error)

type Manifest added in v1.10.1

type Manifest struct {
	DrmLicenseId string
	ManifestType string
	Url          string
}

func (*Manifest) Mpd added in v1.10.1

func (m *Manifest) Mpd() (*http.Response, error)

type Membership

type Membership struct {
	DomainId int
}

type Plays added in v1.10.1

type Plays struct {
	ErrorMsgLong string `json:"error_msg_long"`
	Manifests    []Manifest
}

func (*Plays) Dash added in v1.10.1

func (p *Plays) Dash() (*Manifest, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL