forwarder

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutLoop

func OutLoop(conn net.Conn, pullURL string, rawURL string, in In) error

func Pull

func Pull(in In, pullURL string, fn func(tag httpflv.Tag)) error

Types

type Flv

type Flv struct {
	// contains filtered or unexported fields
}

Flv flv pull session

func (*Flv) Pull

func (s *Flv) Pull(pullURL string, fn func(tag httpflv.Tag)) error

Pull pull flv stream

func (*Flv) Shutdown

func (s *Flv) Shutdown() error

Shutdown shutdown flv session

type In

type In interface {
	Pull(pullURL string, fn func(tag httpflv.Tag)) error
	Shutdown() error
}

In live stream pull interface

func GetIn

func GetIn(tp string) In

GetIn get pull session

type Rtmp

type Rtmp struct {
	// contains filtered or unexported fields
}

Rtmp rtmp pull session

func (*Rtmp) Pull

func (s *Rtmp) Pull(pullURL string, fn func(tag httpflv.Tag)) error

Pull pull rtmp stream

func (*Rtmp) Shutdown

func (s *Rtmp) Shutdown() error

Shutdown shutdown rtmp session

Jump to

Keyboard shortcuts

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