Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegistProtocol ¶
func RegistProtocol(protocol string, proto TransportProtocol)
RegistProtocol is regist protocol
Types ¶
type TransportProtocol ¶
type TransportProtocol interface { Init(map[string]interface{}) error api.Encoder api.Decoder ToFrame(*rpc.RPCRequest) api.XFrame FromFrame(api.XRespFrame) (*rpc.RPCResponse, error) }
transport protocol support by mosn(bolt/boltv2...)
func GetProtocol ¶
func GetProtocol(protocol string) TransportProtocol
GetProtocol is get TransportProtocol
Click to show internal directories.
Click to hide internal directories.