Documentation
¶
Index ¶
- Constants
- func GetBuffer(size int) []byte
- func GetBufioReader(r io.Reader) *bufio.Reader
- func GetPath(fileName string) string
- func GetWriteBuffer() *bytes.Buffer
- func HumanFriendlyTraffic(bytes uint64) string
- func Must(err error)
- func Must2(_ interface{}, err error)
- func PickPort(network string, host string) int
- func PutBuffer(buf []byte) error
- func PutBufioReader(r *bufio.Reader)
- func PutWriteBuffer(buf *bytes.Buffer)
- type Matcher
- type SniffConn
Constants ¶
View Source
const ( TypeHttp = iota TypeUnknown )
View Source
const ( KiB = 1024 MiB = KiB * 1024 GiB = MiB * 1024 // TCPBufSize is the size of tcp buffer TCPBufSize = 16 << 10 // UDPBufSize is the size of udp buffer, 2^16 = 65536 UDPBufSize = 64 << 10 )
Variables ¶
This section is empty.
Functions ¶
func GetWriteBuffer ¶
func HumanFriendlyTraffic ¶
func PutBufioReader ¶
func PutWriteBuffer ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.