Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KeepAliveTime is the duration of time after which if the client doesn't see // any activity it pings the server to see if the transport is still alive. KeepAliveTime = time.Duration(10) * time.Second // KeepAliveTimeout is the duration of time for which the client waits after having // pinged for keepalive check and if no activity is seen even after that the connection // is closed. KeepAliveTimeout = time.Duration(3) * time.Second )
Variables ¶
This section is empty.
Functions ¶
func GetConn ¶
GetConn 根据target获取conn,target为srv名字, 类似 gamesrv, addr为地址,类似 grpc://192.168.15.117:33308,addr可以为空
func WithDiscovery ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.