mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-27 05:06:02 +08:00
36 lines
766 B
Protocol Buffer
36 lines
766 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package cunicu.core;
|
|
option go_package = "github.com/stv0g/cunicu/pkg/proto/core";
|
|
|
|
import "common.proto";
|
|
import "feature/epdisc.proto";
|
|
|
|
message Peer {
|
|
// Public WireGuard X25519 key
|
|
bytes public_key = 1;
|
|
bytes preshared_key = 2;
|
|
|
|
// List of allowed IPs
|
|
repeated string allowed_ips = 3;
|
|
|
|
uint32 persistent_keepalive_interval = 4;
|
|
|
|
// Timestamps
|
|
Timestamp last_handshake_timestamp = 5;
|
|
Timestamp last_receive_timestamp = 6;
|
|
Timestamp last_transmit_timestamp = 7;
|
|
|
|
// Trafic counters
|
|
int64 transmit_bytes = 8;
|
|
int64 receive_bytes = 9;
|
|
|
|
// WireGuard endpoint address
|
|
string endpoint = 10;
|
|
|
|
// WireGuard protocol version
|
|
uint32 protocol_version = 11;
|
|
|
|
epdisc.Peer ice = 12;
|
|
}
|