From 814627b32e8dcea011cd4df4edfabe872f53acb8 Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Fri, 1 May 2015 18:17:36 -0700 Subject: [PATCH] add comments --- clientconn.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clientconn.go b/clientconn.go index d2e8c94b..6080be98 100644 --- a/clientconn.go +++ b/clientconn.go @@ -104,6 +104,9 @@ func WithDialer(f func(addr string, timeout time.Duration) (net.Conn, error)) Di } } +// WithHandshaker returns a DialOption that specifies a function to perform some handshaking +// with the server. It is typically used to negotiate the wire protocol version and security +// protocol with the server. func WithHandshaker(h func(conn net.Conn) (credentials.TransportAuthenticator, error)) DialOption { return func(o *dialOptions) { o.copts.Handshaker = h