transport_protocol

package
v0.0.0-...-b4fed4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL