package
1.0.0-rc1
Repository: https://github.com/samaritan-proxy/samaritan.git
Documentation: pkg.go.dev

# Functions

ExpectBytesWithDeadline expect given payload from r before deadline hits.
NewBufferedConn creates BufferedConn from raw net.Conn.
NewChecker creates AdvancedTCPChecker with given config.
NewTCPExpect creates TCPExpect with given payload unquoted.
NewTCPSend creates TCPSend with given payload unquoted.
SendBytesWithDeadline sends payload to w before deadline hits.

# Constants

MaxBufferSize is the maximum size of buffer.

# Variables

ErrPayloadEmpty indicates the payload is empty.
ErrPayloadTooLarge indicates the payload is too large.
ErrSkippedTooFar indicates SkipBuffer is called with an invalid integer.

# Structs

BufferedConn is a buffered connection shared among actions.
Checker could perform customized actions for checking.
TCPExpect expects specific payload from connection.
TCPSend sends specific payload.

# Interfaces

TCPAction represents an action of advanced TCP.