// Copyright (c) 2023 Volvo Car Corporation
// SPDX-License-Identifier: Apache-2.0

syntax = "proto3";

package natspb;


option go_package = "github.com/golingon/lingoneks/natspb";


message Envelope {
  string topic = 1;
  Message msg = 2;
}

message Message {
  string id = 1;
  string author_id = 2;
  string title = 3;
  string content = 4;
}

message Ack {
  string topic = 1;
  string id = 2;
}

service EnvelopeService {
  rpc Ingest(Envelope) returns (Ack);
}