Package list golang-github-farsightsec-go-nmsg / b42ffe10-85cc-4b60-bb2b-1564e215832c/main nmsg_base / encode.proto
b42ffe10-85cc-4b60-bb2b-1564e215832c/main

Tree @b42ffe10-85cc-4b60-bb2b-1564e215832c/main (Download .tar.gz)

encode.proto @b42ffe10-85cc-4b60-bb2b-1564e215832c/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;
}