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