Skip to content

Instantly share code, notes, and snippets.

@edsiper
Last active March 4, 2017 05:06
Show Gist options
  • Save edsiper/2cd17126df1349d6d522ee8abb2a65d3 to your computer and use it in GitHub Desktop.
Save edsiper/2cd17126df1349d6d522ee8abb2a65d3 to your computer and use it in GitHub Desktop.
msgpack test
[
  { "format": "fixarray",
    "header": "0x94",
    "length": 4,
    "children": [
          { "format": "fixstr",
            "header": "0xb3",
            "length": 19,
            "data": "0x646f636b65722e623034646262626334393663",
            "value": "docker.b04dbbbc496c"
          },
          { "format": "int32",
            "header": "0xd2",
            "data": "0x58ba4a0a",
            "value": 1488603658
          },
          { "format": "fixmap",
            "header": "0x84",
            "length": 4,
            "children": [
                { "key":
                      { "format": "fixstr",
                        "header": "0xac",
                        "length": 12,
                        "data": "0x636f6e7461696e65725f6964",
                        "value": "container_id"
                      },
                  "value":
                      { "format": "str8",
                        "header": "0xd9",
                        "length": 64,
                        "data": "0x62303464626262633439366363623161313362303039363432366530353336326430386135636366383665383461316263643166396238313738343134323464",
                        "value": "b04dbbbc496ccb1a13b0096426e05362d08a5ccf86e84a1bcd1f9b817841424d"
                      }
                },
                { "key":
                      { "format": "fixstr",
                        "header": "0xae",
                        "length": 14,
                        "data": "0x636f6e7461696e65725f6e616d65",
                        "value": "container_name"
                      },
                  "value":
                      { "format": "fixstr",
                        "header": "0xae",
                        "length": 14,
                        "data": "0x2f736d616c6c5f6d7572646f636b",
                        "value": "/small_murdock"
                      }
                },
                { "key":
                      { "format": "fixstr",
                        "header": "0xa6",
                        "length": 6,
                        "data": "0x736f75726365",
                        "value": "source"
                      },
                  "value":
                      { "format": "fixstr",
                        "header": "0xa6",
                        "length": 6,
                        "data": "0x7374646f7574",
                        "value": "stdout"
                      }
                },
                { "key":
                      { "format": "fixstr",
                        "header": "0xa3",
                        "length": 3,
                        "data": "0x6c6f67",
                        "value": "log"
                      },
                  "value":
                      { "format": "fixstr",
                        "header": "0xa5",
                        "length": 5,
                        "data": "0x746573740d",
                        "value": "test\r"
                      }
                }
            ]
          },
          { "format": "nil",
            "header": "0xc0",
            "data": "0xc0",
            "value": null
          }
    ]
  },
  { "format": "fixint",
    "header": "0x00",
    "data": "0x00",
    "value": 0
  },
  { "format": "nil",
    "header": "0xc0",
    "data": "0xc0",
    "value": null
  },
  { "format": "fixint",
    "header": "0x00",
    "data": "0x00",
    "value": 0
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment