protobufs/apponly.proto

40 lines
1.2 KiB
Protocol Buffer
Raw Normal View History

2020-12-28 13:34:14 +08:00
syntax = "proto3";
option java_package = "com.geeksville.mesh";
option optimize_for = LITE_RUNTIME;
import "mesh.proto";
import "channel.proto";
2020-12-28 13:34:14 +08:00
2021-02-27 13:43:36 +08:00
option java_outer_classname = "AppOnlyProtos";
2021-01-29 10:11:10 +08:00
/*
* This message wraps a MeshPacket with extra metadata about the sender and how it arrived.
*/
2020-12-28 13:34:14 +08:00
message ServiceEnvelope {
2021-01-29 10:11:10 +08:00
/*
* The (probably encrypted) packet
*/
2020-12-28 13:34:14 +08:00
MeshPacket packet = 1;
2021-01-29 10:11:10 +08:00
/*
* The global channel ID it was sent on
*/
2020-12-28 13:34:14 +08:00
string channel_id = 2;
2021-01-29 10:11:10 +08:00
/*
* The sending gateway. Can we use this to authenticate/prevent fake
* nodeid impersonation for senders? - i.e. use gateway/mesh id (which is authenticated) + local node id as
* the globally trusted nodenum
*/
2020-12-28 14:38:51 +08:00
string gateway_id = 3;
2021-02-17 13:05:46 +08:00
}
2021-03-07 19:28:48 +11:00
/*
* This is the most compact possible representation for a set of channels. It includes only one PRIMARY channel (which must be first) and
* any SECONDARY channels. No DISABLED channels are included.
* This abstraction is used only on the the 'app side' of the world (ie python, javascript and android etc) to show a group of Channels as a (long) URL
*/
2021-02-17 13:05:46 +08:00
message ChannelSet {
repeated ChannelSettings settings = 1;
2020-12-28 13:34:14 +08:00
}