Marshal/Unmarshal arguments and return values separately to allow struct tags to take effect for each codec
This commit is contained in:
@@ -26,7 +26,7 @@ type Request struct {
|
||||
ID string
|
||||
Receiver string
|
||||
Method string
|
||||
Arg any
|
||||
Arg []byte
|
||||
}
|
||||
|
||||
type ResponseType uint8
|
||||
@@ -43,5 +43,5 @@ type Response struct {
|
||||
Type ResponseType
|
||||
ID string
|
||||
Error string
|
||||
Return any
|
||||
Return []byte
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user