Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTimeout = errors.New("request timeout")
)
Functions ¶
func GetChannel ¶
func GetChannel(config ChannelConfig) (rpc.Channel, error)
GetChannel creates a rpc.Channel according to config.Protocol
func RegistChannel ¶
func RegistChannel(proto string, f func(config ChannelConfig) (rpc.Channel, error))
RegistChannel is set protocol
Types ¶
Click to show internal directories.
Click to hide internal directories.