Package list golang-github-farsightsec-go-nmsg / 20629bac-fc9c-461b-aa0b-b3be97e383e2/main nmsg_base / encode.proto
20629bac-fc9c-461b-aa0b-b3be97e383e2/main

Tree @20629bac-fc9c-461b-aa0b-b3be97e383e2/main (Download .tar.gz)

encode.proto @20629bac-fc9c-461b-aa0b-b3be97e383e2/mainraw · history · blame

syntax = "proto2";
package nmsg.base;
option go_package = "github.com/farsightsec/go-nmsg/nmsg_base";


message Encode {
    enum EncodeType {
        TEXT = 0;
        JSON = 1;
        YAML = 2;
        MSGPACK = 3;
        XML = 4;
    }
    required EncodeType type = 1;
    required bytes      payload = 2;
}