transcoder

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RequestTranscodeFail api.ResponseFlag = 0x2000

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(typ string, transcoder Transcoder)

Types

type Transcoder

type Transcoder interface {
	// Accept
	Accept(ctx context.Context, headers types.HeaderMap, buf types.IoBuffer, trailers types.HeaderMap) bool
	// TranscodingRequest
	TranscodingRequest(ctx context.Context, headers types.HeaderMap, buf types.IoBuffer, trailers types.HeaderMap) (types.HeaderMap, types.IoBuffer, types.HeaderMap, error)
	// TranscodingResponse
	TranscodingResponse(ctx context.Context, headers types.HeaderMap, buf types.IoBuffer, trailers types.HeaderMap) (types.HeaderMap, types.IoBuffer, types.HeaderMap, error)
}

Transcoder provide ability to transcoding request/response

func GetTranscoder

func GetTranscoder(typ string) Transcoder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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