Documentation ¶
Overview ¶
Package testdialer provides a fake dialer for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufconnDialer ¶
type BufconnDialer struct {
// contains filtered or unexported fields
}
BufconnDialer is a fake dialer based on gRPC bufconn package.
func NewBufconnDialer ¶
func NewBufconnDialer() *BufconnDialer
NewBufconnDialer creates a new bufconn dialer for testing.
func (*BufconnDialer) DialContext ¶
DialContext implements the Dialer interface.
func (*BufconnDialer) GetListener ¶
func (b *BufconnDialer) GetListener(endpoint string) net.Listener
GetListener returns a fake listener that is coupled with this dialer.
Click to show internal directories.
Click to hide internal directories.