Documentation ¶
Index ¶
- Variables
- func CutToChunks(key []byte, unit int) [][]byte
- func CutToChunksByProtocol(key []byte, chunks [][]byte) ([]byte, [][]byte)
- func CutToChunksPostHandle(key []byte, unit int, chunks [][]byte) [][]byte
- func CutToChunksPreHandle(key []byte, unit int) ([]byte, int)
- func SortRequestParams(key []byte) []byte
- type Matcher
- func (m *Matcher) DoMatchOutboundTalk(ctx context.Context, session *replaying.Session, lastMatchedIndex int, ...) (int, float64, *recording.CallOutbound)
- func (m *Matcher) HasBetterScore(score int, index int, maxScore int) bool
- func (m *Matcher) MatchOutboundTalk(ctx context.Context, session *replaying.Session, lastMatchedIndex int, ...) (int, float64, *recording.CallOutbound)
- type MatcherIf
Constants ¶
This section is empty.
Variables ¶
View Source
var CutUnit = 16
Functions ¶
func CutToChunks ¶
func CutToChunksByProtocol ¶
CutToChunksByProtocol 根据协议切分
func CutToChunksPostHandle ¶
CutToChunksPostHandle
func CutToChunksPreHandle ¶
CutToChunksPreHandle 预处理
func SortRequestParams ¶
sortRequestParams 对HTTP参数排序,解决因两次请求参数顺序不一致而导致匹配失败的情况
Types ¶
Click to show internal directories.
Click to hide internal directories.