Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHost = errors.New("Invalid hostname")
ErrInvalidHost describes an error for a hostname that is considered invalid if it's empty
View Source
var ErrUnparsedURL = errors.New("URL is not parsed correctly")
ErrUnparsedURL describes an error that occours when the parsing process cannot be deemed as successful
Functions ¶
func GetURIDirectory ¶
GetURIDirectory is a function to create a directory string from an URI
func ValidateURL ¶ added in v1.1.0
ValidateURL checks if everything is present for the given URL
Types ¶
type IProcessor ¶ added in v1.1.0
type IProcessor interface { NewProcess(URI string) *exec.Cmd NewStream(URI string) (*Stream, string) Restart(stream *Stream, path string) error }
IProcessor is an interface describing a processor service
type Processor ¶ added in v1.1.0
type Processor struct {
// contains filtered or unexported fields
}
Processor is the main type for creating new processes
func NewProcessor ¶ added in v1.1.0
NewProcessor creates a new instance of a processor
func (Processor) NewProcess ¶ added in v1.1.0
NewProcess creates only the process for the stream
type Stream ¶
type Stream struct { CMD *exec.Cmd `json:"-"` Mux *sync.RWMutex `json:"-"` Path string `json:"path"` Streak *hotstreak.Hotstreak `json:"-"` OriginalURI string `json:"-"` StorePath string `json:"-"` }
Stream describes a given host's streaming
func (*Stream) CleanProcess ¶ added in v1.1.0
CleanProcess makes sure that the transcoding process is killed correctly
Click to show internal directories.
Click to hide internal directories.