Documentation ¶
Index ¶
Constants ¶
View Source
const TimeLayout string = "15:04:05.000"
TimeLayout is the format to print time to string.
Variables ¶
This section is empty.
Functions ¶
func BufPipe ¶ added in v1.7.0
func BufPipe() (io.ReadWriteCloser, io.ReadWriteCloser)
BufPipe is like net.Pipe() but with an internal buffer.
func TestHelperGenRot13Input ¶
TestHelperGenRot13Input generates valid rotate-13 input.
func TestHelperRot13 ¶
TestHelperRot13 returns the rotate-13 of the input.
func TestHelperServeConn ¶
TestHelperServeConn serves client requests and returns the rotate-13 of the input.
Types ¶
type ReplayRecord ¶
type ReplayRecord struct { Data []byte // the recorded data Ready chan struct{} // indicate the data is recorded and ready to process Finish chan struct{} // indicate the record is processed and no longer needed }
ReplayRecord is a bundle that helps to test replay attack.
Click to show internal directories.
Click to hide internal directories.