package NCrawl;

// Add here custom fields for different feeds
message TFeedContext {
    optional double DoubleValue = 1;
    optional uint64 Uint64Value = 2;
    optional string StringValue = 3;

    // Feel free to add any custom fields if you need something more than double, uint or string
}

message TFeedExt {
    optional string FeedName = 1;
    optional string Url = 2;
    optional TFeedContext FeedContext = 3;
    // In usual case samovar send immediate push with feed
    // If ProcessTime set with future timestamp (>GetNow()), push would be send as delayed
    // to be processed at specified time
    optional uint32 ProcessTime = 4 [default = 0];
    // External timestamp, may be set with sender process for any purpose
    optional uint32 ExternalTimestamp = 5;
    optional bool Delete = 6 [default = false]; // if true, deletes existing feed from url
}
