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
Click to show internal directories.
Click to hide internal directories.