Skip to content

Commit 1f6ca3d

Browse files
committed
feat: add dag-json codec types
1 parent 1d06fea commit 1f6ca3d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

ipld/codec/dagjson/dagjson.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package dagjson
2+
3+
import (
4+
jsg "github.com/alanshaw/dag-json-gen"
5+
)
6+
7+
const Code = 0x0129
8+
9+
type DagJsonMarshaler = jsg.DagJsonMarshaler
10+
type DagJsonUnmarshaler = jsg.DagJsonUnmarshaler
11+
12+
type DagJsonMarshalable interface {
13+
DagJsonMarshaler
14+
DagJsonUnmarshaler
15+
}

0 commit comments

Comments
 (0)