make cid's loggable

This commit is contained in:
Jeromy
2016-09-27 06:14:46 -07:00
parent 167239b405
commit 595cace68a

6
cid.go
View File

@@ -168,3 +168,9 @@ func (c *Cid) MarshalJSON() ([]byte, error) {
func (c *Cid) KeyString() string {
return string(c.Bytes())
}
func (c *Cid) Loggable() map[string]interface{} {
return map[string]interface{}{
"cid": c,
}
}