mirror of
https://github.com/pierre-emmanuelJ/iptv-proxy.git
synced 2026-03-12 22:24:18 +01:00
26 lines
478 B
Go
26 lines
478 B
Go
package config
|
|
|
|
import (
|
|
"net/url"
|
|
|
|
"github.com/jamesnetherton/m3u"
|
|
)
|
|
|
|
// HostConfiguration containt host infos
|
|
type HostConfiguration struct {
|
|
Hostname string
|
|
Port int64
|
|
}
|
|
|
|
// ProxyConfig Contain original m3u playlist and HostConfiguration
|
|
type ProxyConfig struct {
|
|
Playlist *m3u.Playlist
|
|
HostConfig *HostConfiguration
|
|
XtreamUser string
|
|
XtreamPassword string
|
|
XtreamBaseURL string
|
|
RemoteURL *url.URL
|
|
//XXX Very unsafe
|
|
User, Password string
|
|
}
|