Documentation ¶
Index ¶
Constants ¶
View Source
const ONE_RPC_VERSION = 1
Variables ¶
This section is empty.
Functions ¶
func NewClientProtocol ¶
func NewClientProtocol(name string, conf *transport.OneCltConf) transport.CltProtocol
Types ¶
type ClientProtocol ¶
type ClientProtocol struct {
// contains filtered or unexported fields
}
func (*ClientProtocol) Recv ¶
func (ocp *ClientProtocol) Recv(pkg []byte)
func (*ClientProtocol) String ¶
func (ocp *ClientProtocol) String() string
type ServerProtocl ¶
type ServerProtocl struct {
// contains filtered or unexported fields
}
func NewServerProtocol ¶
func NewServerProtocol(dpr dispatcher, imp interface{}, logger Logger) *ServerProtocl
func (*ServerProtocl) Invoke ¶
func (p *ServerProtocl) Invoke(ctx context.Context, req []byte) []byte
func (*ServerProtocl) InvokeTimeout ¶
func (p *ServerProtocl) InvokeTimeout(ctx context.Context, req []byte) []byte
Click to show internal directories.
Click to hide internal directories.