mirror of
https://github.com/smallnest/rpcx.git
synced 2025-11-01 20:02:39 +08:00
add SendRaw method to send raw rpcx messages
This commit is contained in:
@@ -2,11 +2,13 @@ package client
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"sync"
|
||||
|
||||
"github.com/smallnest/rpcx/log"
|
||||
"github.com/smallnest/rpcx/protocol"
|
||||
"github.com/smallnest/rpcx/share"
|
||||
)
|
||||
|
||||
@@ -115,6 +117,10 @@ func (client *inprocessClient) Call(ctx context.Context, servicePath, serviceMet
|
||||
return err
|
||||
}
|
||||
|
||||
func (client *inprocessClient) SendRaw(ctx context.Context, r *protocol.Message) (map[string]string, []byte, error) {
|
||||
return nil, nil, errors.New("SendRaw method is not supported by inprocessClient")
|
||||
}
|
||||
|
||||
// Close do a fake operaton.
|
||||
func (client *inprocessClient) Close() error {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user