This repository has been archived by the owner on Sep 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 145
/
entry_headers.go
103 lines (100 loc) · 3.13 KB
/
entry_headers.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package holochain
const (
HeadersEntryType = SysEntryTypePrefix + "header"
)
const (
HeadersEntrySchema = `
{
"$id": "http://example.com/example.json",
"type": "array",
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"items": {
"$id": "http://example.com/example.json/items",
"type": "object",
"properties": {
"Source": {
"$id": "http://example.com/example.json/items/properties/Source",
"type": "string",
"title": "The Source Schema ",
"default": "",
"examples": [
"QmeLEGdTHwM4XYGggePJAYXLx968GiuiNooU1p7fa8T8zd"
]
},
"Header": {
"$id": "http://example.com/example.json/items/properties/Header",
"type": "object",
"properties": {
"Type": {
"$id": "http://example.com/example.json/items/properties/Header/properties/Type",
"type": "string",
"title": "The Type Schema ",
"default": "",
"examples": [
"someType"
]
},
"Time": {
"$id": "http://example.com/example.json/items/properties/Header/properties/Time",
"type": "string",
"title": "The Time Schema ",
"default": "",
"examples": [
"2018-03-15 19:30:05.740445736 -0400 EDT"
]
},
"EntryLink": {
"$id": "http://example.com/example.json/items/properties/Header/properties/EntryLink",
"type": "string",
"title": "The Entrylink Schema ",
"default": "",
"examples": [
"QmeLEGdTHwM4XYGggePJAYXLx968GiuiNooU1p7fa8T8zd"
]
},
"HeaderLink": {
"$id": "http://example.com/example.json/items/properties/Header/properties/HeaderLink",
"type": "string",
"title": "The Headerlink Schema ",
"default": "",
"examples": [
"QmWr1C3CeX12iZz98JGhzfsvfQpif29Ptwe86miZ9N9snU"
]
},
"TypeLink": {
"$id": "http://example.com/example.json/items/properties/Header/properties/TypeLink",
"type": "string",
"title": "The Typelink Schema ",
"default": "",
"examples": [
"1"
]
},
"Signature": {
"$id": "http://example.com/example.json/items/properties/Header/properties/Signature",
"type": "string",
"title": "The Signature Schema ",
"default": "",
"examples": [
"StwmRCJtj9Ymjdo7ws8ZeNdmEi2GZzNdtbubT8MZBfxpXWQDLtQPDZWeSA2qHTsVtyN7tZCrYTeWmeCdcoYe197"
]
}
}
},
"Role": {
"$id": "http://example.com/example.json/items/properties/Role",
"type": "string",
"title": "The Role Schema ",
"default": "",
"examples": [
"someRole"
]
}
},
"required": ["Header","Source"]
}
}
`
)
var HeadersEntryDef = &EntryDef{Name: HeadersEntryType, DataFormat: DataFormatJSON, Sharing: Public, Schema: HeadersEntrySchema}