Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
co-authored by
github-actions[bot]
marbar3778
parent
896911659d
commit
9b38363003
+2
-2
@@ -72,7 +72,7 @@ type (
|
||||
// MarshalInterface is a helper method which will wrap `i` into `Any` for correct
|
||||
// binary interface (de)serialization.
|
||||
MarshalInterface(i proto.Message) ([]byte, error)
|
||||
// UnmarshalInterface is a helper method which will parse binary enoded data
|
||||
// UnmarshalInterface is a helper method which will parse binary encoded data
|
||||
// into `Any` and unpack any into the `ptr`. It fails if the target interface type
|
||||
// is not registered in codec, or is not compatible with the serialized data
|
||||
UnmarshalInterface(bz []byte, ptr interface{}) error
|
||||
@@ -88,7 +88,7 @@ type (
|
||||
// MarshalInterfaceJSON is a helper method which will wrap `i` into `Any` for correct
|
||||
// JSON interface (de)serialization.
|
||||
MarshalInterfaceJSON(i proto.Message) ([]byte, error)
|
||||
// UnmarshalInterfaceJSON is a helper method which will parse JSON enoded data
|
||||
// UnmarshalInterfaceJSON is a helper method which will parse JSON encoded data
|
||||
// into `Any` and unpack any into the `ptr`. It fails if the target interface type
|
||||
// is not registered in codec, or is not compatible with the serialized data
|
||||
UnmarshalInterfaceJSON(bz []byte, ptr interface{}) error
|
||||
|
||||
Reference in New Issue
Block a user