MCPcopy
hub / github.com/cubefs/cubefs / Marshaler

Interface Marshaler

blobstore/common/rpc/proto.go:100–102  ·  view source on GitHub ↗

priority of marshaler and unmarshaler (default is json). - - - - - - - - - - - - - - - - - - - - - - | | marshaler | unmarshaler | | higher | | ^ | MarshalerTo | UnmarshalerFrom | | | | Marshaler | Unmarshaler | | | | JSON Marshal| JSON Unmarshal | | lower |

Source from the content-addressed store, hash-verified

98 // can marshal themselves into bytes, second parameter
99 // is content type.
100 Marshaler interface {
101 Marshal() ([]byte, string, error)
102 }
103 // MarshalerTo is the interface implemented by types that
104 // can marshal themselves into writer, the first parameter
105 // is content type. (Not Recommended).

Callers 8

MarshalDataMethod · 0.65
MarshalJSONMethod · 0.65
MarshalJSONMethod · 0.65
GenYamlCustomFunction · 0.65
writeErrorMethod · 0.65
UpLoadFileMethod · 0.65

Implementers 15

PutCacheRequestclient/blockcache/bcache/packet.go
GetCacheRequestclient/blockcache/bcache/packet.go
GetCachePathResponseclient/blockcache/bcache/packet.go
DelCacheRequestclient/blockcache/bcache/packet.go
Inodemetanode/inode.go
TxRollbackInodemetanode/transaction.go
TxInodemetanode/inode.go
uniqCheckermetanode/uniq_checker.go
Dentrymetanode/dentry.go
TxDentrymetanode/dentry.go
TxUpdateDentrymetanode/dentry.go
InodeOncemetanode/partition_op_uniq.go

Calls

no outgoing calls

Tested by

no test coverage detected