Documentation
¶
Index ¶
- Variables
- func Reg(tFilter TransferFilter)
- type PipeTFilter
- func (that *PipeTFilter) Append(filterID ...byte) error
- func (that *PipeTFilter) AppendFrom(src *PipeTFilter)
- func (that *PipeTFilter) IDs() []byte
- func (that *PipeTFilter) Iterator(callback func(idx int, filter TransferFilter) bool)
- func (that *PipeTFilter) Len() int
- func (that *PipeTFilter) Names() []string
- func (that *PipeTFilter) OnPack(data []byte) ([]byte, error)
- func (that *PipeTFilter) OnUnpack(data []byte) ([]byte, error)
- func (that *PipeTFilter) Reset()
- type TransferFilter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTransferFilterTooLong = errors.New("The length of transfer pipe cannot be bigger than 255 ")
Functions ¶
Types ¶
type PipeTFilter ¶
type PipeTFilter struct {
// contains filtered or unexported fields
}
PipeTFilter 传输过滤器管道
func (*PipeTFilter) AppendFrom ¶
func (that *PipeTFilter) AppendFrom(src *PipeTFilter)
AppendFrom 从指定传输过滤器管道追加过滤器
func (*PipeTFilter) Iterator ¶
func (that *PipeTFilter) Iterator(callback func(idx int, filter TransferFilter) bool)
Iterator 迭代
func (*PipeTFilter) OnPack ¶
func (that *PipeTFilter) OnPack(data []byte) ([]byte, error)
OnPack 打包,从最内层到最外层
Click to show internal directories.
Click to hide internal directories.