config

package
v0.0.0-...-e7c2538 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialString

type CredentialString string

CredentialString represents an iptv-proxy credential.

func (CredentialString) PathEscape

func (c CredentialString) PathEscape() string

PathEscape escapes the credential for an url path.

func (CredentialString) String

func (c CredentialString) String() string

String returns the credential string.

type HostConfiguration

type HostConfiguration struct {
	Hostname string
	Port     int
}

HostConfiguration containt host infos

type ProxyConfig

type ProxyConfig struct {
	HostConfig           *HostConfiguration
	XtreamUser           CredentialString
	XtreamPassword       CredentialString
	XtreamBaseURL        string
	XtreamGenerateApiGet bool
	M3UCacheExpiration   int
	M3UFileName          string
	CustomEndpoint       string
	CustomId             string
	RemoteURL            *url.URL
	AdvertisedPort       int
	HTTPS                bool
	User, Password       CredentialString
}

ProxyConfig Contain original m3u playlist and HostConfiguration

Jump to

Keyboard shortcuts

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