Package list golang-github-farsightsec-go-nmsg / 398d8460-a545-469a-b628-ab5cbdc296ac/main nmsg_base / encode.proto
398d8460-a545-469a-b628-ab5cbdc296ac/main

Tree @398d8460-a545-469a-b628-ab5cbdc296ac/main (Download .tar.gz)

encode.proto @398d8460-a545-469a-b628-ab5cbdc296ac/mainraw · history · blame

syntax = "proto2";
package nmsg.base;

enum EncodeType {
    TEXT = 0;
    JSON = 1;
    YAML = 2;
    MSGPACK = 3;
    XML = 4;
}

message Encode {
    required EncodeType type = 1;
    required bytes      payload = 2;
}