There is a new protobuf library (and corresponding code generator) for Go: google.golang.org/protobuf. It is fairly compatible with the previous v1 API (github.com/golang/protobuf), but there are some changes. This patch adjusts the code and generated files to the new API. The on-wire/on-disk format remains unchanged so this should be transparent to the users.
30 lines
595 B
Protocol Buffer
30 lines
595 B
Protocol Buffer
|
|
syntax = "proto3";
|
|
|
|
package domaininfo;
|
|
option go_package = "blitiri.com.ar/go/chasquid/internal/domaininfo";
|
|
|
|
enum SecLevel {
|
|
// Does not do TLS.
|
|
PLAIN = 0;
|
|
|
|
// TLS client connection (no certificate validation).
|
|
TLS_CLIENT = 1;
|
|
|
|
// TLS, but with invalid certificates.
|
|
TLS_INSECURE = 2;
|
|
|
|
// TLS, with valid certificates.
|
|
TLS_SECURE = 3;
|
|
}
|
|
|
|
message Domain {
|
|
string name = 1;
|
|
|
|
// Security level for mail coming from this domain (they send to us).
|
|
SecLevel incoming_sec_level = 2;
|
|
|
|
// Security level for mail going to this domain (we send to them).
|
|
SecLevel outgoing_sec_level = 3;
|
|
}
|