Documentation
¶
Index ¶
- func NewInterceptorBuilder() ziface.InterceptorBuilder
- func NewLengthFieldFrameDecoder(maxFrameLength int64, ...) ziface.IDecoder
- func NewLengthFieldFrameDecoderByLengthField(lengthField ziface.LengthField) ziface.IDecoder
- func NewRealInterceptorChain(list []ziface.Interceptor, pos int, request ziface.Request) ziface.Chain
- type EncoderData
- type InterceptorChain
- type LengthFieldFrameInterceptor
- type RealInterceptorChain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterceptorBuilder ¶
func NewInterceptorBuilder() ziface.InterceptorBuilder
func NewLengthFieldFrameDecoderByLengthField ¶
func NewLengthFieldFrameDecoderByLengthField(lengthField ziface.LengthField) ziface.IDecoder
func NewRealInterceptorChain ¶
Types ¶
type EncoderData ¶
type EncoderData struct {
LengthFieldEndOffset int //长度字段结束位置的偏移量 LengthFieldOffset+LengthFieldLength
// contains filtered or unexported fields
}
func (*EncoderData) Decode ¶
func (this *EncoderData) Decode(buff []byte) [][]byte
type InterceptorChain ¶
type InterceptorChain struct {
// contains filtered or unexported fields
}
InterceptorChain HTLV+CRC,H头码,T功能码,L数据长度,V数据内容 +------+-------+---------+--------+--------+ | 头码 | 功能码 | 数据长度 | 数据内容 | CRC校验 | | 1字节 | 1字节 | 1字节 | N字节 | 2字节 | +------+-------+---------+--------+--------+
func (*InterceptorChain) AddInterceptor ¶
func (this *InterceptorChain) AddInterceptor(interceptor ziface.Interceptor)
type LengthFieldFrameInterceptor ¶
type LengthFieldFrameInterceptor struct {
// contains filtered or unexported fields
}
func NewLengthFieldFrameInterceptor ¶
func NewLengthFieldFrameInterceptor(maxFrameLength int64, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip int) *LengthFieldFrameInterceptor
type RealInterceptorChain ¶
type RealInterceptorChain struct {
// contains filtered or unexported fields
}
func (*RealInterceptorChain) Proceed ¶
func (this *RealInterceptorChain) Proceed(request ziface.Request) ziface.Response
func (*RealInterceptorChain) Request ¶
func (this *RealInterceptorChain) Request() ziface.Request
Click to show internal directories.
Click to hide internal directories.