stream

package
v1.6.21 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWriteFileChunk   = &SStreamError{"write file chunk"}
	ErrLoadFileChunk    = &SStreamError{"load file chunk"}
	ErrInvalidHash      = &SStreamError{"invalid hash"}
	ErrRetryFailed      = &SStreamError{"retry failed"}
	ErrInvalidWhence    = &SStreamError{"invalid whence"}
	ErrNegativePosition = &SStreamError{"negative position"}
	ErrGetMessageLimit  = &SStreamError{"get message limit"}
)

Functions

This section is empty.

Types

type IFileInfo added in v1.6.10

type IFileInfo interface {
	GetName() string
	GetHash() string
	GetSize() uint64
}

func NewFileInfo added in v1.6.10

func NewFileInfo(pName, pHash string, pSize uint64) IFileInfo

type IReadSeeker

type IReadSeeker io.ReadSeeker

func BuildStream added in v1.6.6

func BuildStream(
	pCtx context.Context,
	pRetryNum uint64,
	pHlsClient hls_client.IClient,
	pAliasName string,
	pFileInfo IFileInfo,
) (IReadSeeker, error)

type SStreamError added in v1.6.8

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

func (*SStreamError) Error added in v1.6.8

func (err *SStreamError) Error() string

Jump to

Keyboard shortcuts

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