client

package
v1.6.12 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest      = errors.New(errPrefix + "bad request")
	ErrDecodeResponse  = errors.New(errPrefix + "decode response")
	ErrInvalidResponse = errors.New(errPrefix + "invalid response")
)

Functions

This section is empty.

Types

type IBuilder

type IBuilder interface {
	GetListFiles(uint64) hls_request.IRequest
	LoadFileChunk(string, uint64) hls_request.IRequest
}

func NewBuilder

func NewBuilder() IBuilder

type IClient

type IClient interface {
	GetListFiles(context.Context, string, uint64) ([]hlf_settings.SFileInfo, error)
	LoadFileChunk(context.Context, string, string, uint64) ([]byte, error)
}

func NewClient

func NewClient(pBuilder IBuilder, pRequester IRequester) IClient

type IRequester

type IRequester interface {
	GetListFiles(context.Context, string, hls_request.IRequest) ([]hlf_settings.SFileInfo, error)
	LoadFileChunk(context.Context, string, hls_request.IRequest) ([]byte, error)
}

func NewRequester

func NewRequester(pHLSClient hls_client.IClient) IRequester

type SClientError added in v1.6.8

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

func (*SClientError) Error added in v1.6.8

func (err *SClientError) Error() string

Jump to

Keyboard shortcuts

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