Documentation
¶
Index ¶
Constants ¶
View Source
const LOGIN_PATH = "/session/userlogin"
View Source
const LOGOUT_PATH = "/session/logout"
Variables ¶
View Source
var ( ErrFailedLogin = errors.New("failed login") ErrFailedLogout = errors.New("failed logout") ErrNotLoggedIn = errors.New("client not logged in") )
View Source
var BaseUrl = url.URL{
Scheme: "https",
Host: "senturion.to",
}
If this changes users can pass a new url as an option to our initializer
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewWithToken ¶
Unlikely that anyone will use this but its here if you already have a token.
func (*Client) Links ¶
func (c *Client) Links(ctx context.Context, sr SearchResponse) ([]LinksResponse, error)
type EpisodeData ¶
type LinksResponse ¶
type LinksResponse struct {
Jwplayer []struct {
File string `json:"file"`
Type string `json:"type"`
Label string `json:"label"`
} `json:"jwplayer"`
Dl string `json:"dl"`
DlHd string `json:"dl_hd"`
Server struct {
List map[string]string `json:"list"`
Host string `json:"host"`
Selected int `json:"selected"`
Scheme string `json:"scheme"`
P720 string `json:"720"`
P1080 string `json:"1080"`
} `json:"server"`
}
Click to show internal directories.
Click to hide internal directories.