Package peacock (v1.11.4) [up] [repository]

Index

Variables

var Territory = "US"

Types

type Cookie struct {
	Name  string
	Value string
}

Functions

func FetchIdSession(user, password string) (*Cookie, error)

Methods

func (*Cookie) CachePath() string
func (c *Cookie) String() string

type Endpoint

type Endpoint struct {
	Cdn string
	Url string
}

type Playout

type Playout struct {
	Asset struct {
		Endpoints []Endpoint
	}
	Description string
	Protection  struct {
		LicenceAcquisitionUrl *Url
	}
}

Methods

func (*Playout) CachePath() string
func (p *Playout) FetchWidevine(body []byte) ([]byte, error)

L3 max 1080p

func (p *Playout) GetFastly() (*url.URL, error)

type Token

userToken is good for one day

type Token struct {
	Description string
	UserToken   string
}

Functions

func FetchToken(idSession *Cookie) (*Token, error)

Methods

func (t *Token) FetchPlayout(variantId string) (*Playout, error)

type Url

type Url struct {
	Url url.URL
}

Methods

func (u *Url) MarshalText() ([]byte, error)
func (u *Url) UnmarshalText(text []byte) error