Documentation ¶
Overview ¶
Package testutil include useful test utilities for the handshaker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestConn ¶
NewTestConn creates a new instance of testConn object.
func NewTestConnWithReadLatency ¶ added in v1.61.0
func NewTestConnWithReadLatency(in *bytes.Buffer, out *bytes.Buffer, readLatency time.Duration) net.Conn
NewTestConnWithReadLatency creates a new instance of testConn object that pauses for readLatency before any call to Read() returns.
func NewUnresponsiveTestConn ¶
NewUnresponsiveTestConn creates a new instance of unresponsiveTestConn object.
Types ¶
type FakeHandshaker ¶ added in v1.55.0
type FakeHandshaker struct {
altsgrpc.HandshakerServiceServer
}
FakeHandshaker is a fake implementation of the ALTS handshaker service.
func (*FakeHandshaker) DoHandshake ¶ added in v1.55.0
func (h *FakeHandshaker) DoHandshake(stream altsgrpc.HandshakerService_DoHandshakeServer) error
DoHandshake performs a fake ALTS handshake.
Click to show internal directories.
Click to hide internal directories.