server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostConfiguration

type HostConfiguration struct {
	Hostname string
	Port     int64
}

HostConfiguration contains host infos

type Server

type Server struct {
	HostConfig *HostConfiguration
	Entries    map[string]string
	// contains filtered or unexported fields
}

Server Contain original m3u playlist and HostConfiguration

func New

func New(hostname string, port int64, entries map[string]string) *Server

New initialize a new server configuration

func (*Server) Serve

func (s *Server) Serve()

Serve the iptv-proxy api

Jump to

Keyboard shortcuts

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