Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseWriter ¶
type ResponseWriter struct { test.ResponseWriter // contains filtered or unexported fields }
ResponseWriter extends test.ResponseWriter and record useful calls to methods.
func (*ResponseWriter) GetWriteMsgCallCount ¶
func (t *ResponseWriter) GetWriteMsgCallCount() uint64
GetWriteMsgCallCount returns the number of WriteMsg calls that were made.
type ResponseWriterCustomRemote ¶
type ResponseWriterCustomRemote struct { ResponseWriter RemoteIP string }
ResponseWriterCustomRemote is a ResponseWriter which can receive a custom remote address.
func (*ResponseWriterCustomRemote) RemoteAddr ¶
func (t *ResponseWriterCustomRemote) RemoteAddr() net.Addr
RemoteAddr returns a net.Addr of the remote address connecting to the server.
Click to show internal directories.
Click to hide internal directories.