We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dccddc4 commit 3ae9e3dCopy full SHA for 3ae9e3d
pkg/inserter/model.go
@@ -1,16 +1,17 @@
1
package inserter
2
3
+// CollectionName - Name of collection
4
type CollectionName string
5
6
// Collection - JSONやYAMLのモデル
7
type Collection struct {
- Version string `json:"version" yaml:"version"`
8
+ Version string `json:"version" yaml:"version"`
9
Items []Document `json:"items" yaml:"version"`
10
}
11
12
// Document - Modelが持つアイテム
13
type Document struct {
- Ref string `json:"ref" yaml:"ref"`
14
- Payload map[string]interface{} `json:"payload" yaml:"payload"`
+ Ref string `json:"ref" yaml:"ref"`
15
+ Payload map[string]interface{} `json:"payload" yaml:"payload"`
16
SubCollections map[CollectionName][]Document `json:"sub_collections"`
17
0 commit comments