Package cineMember (v1.10.6) [repository]

Index

Variables

var Transport = http.Transport{
	Proxy: func(req *http.Request) (*url.URL, error) {
		if path.Ext(req.URL.Path) != ".m4s" {
			log.Println(req.Method, req.URL)
		}
		return http.ProxyFromEnvironment(req)
	},
}

Functions

func Id(address string) (int, error)

Types

type Session

type Session [1]*http.Cookie

Methods

func (s *Session) Fetch() error
func (s Session) Login(email, password string) error
func (s *Session) Set(data string) error
func (s Session) Stream(id int) (*Stream, error)

must run Session.Login first

func (s Session) String() string

type Stream

type Stream struct {
	Error string
	Links []struct {
		MimeType string
		Url      string
	}
	NoAccess bool
}

Methods

func (s *Stream) Dash() (string, bool)
func (s *Stream) Vtt() (string, bool)