2 import "google/protobuf/descriptor.proto";
3 import "goby/pb/protobuf/interprocess_notification.proto";
4 import "goby/common/protobuf/option_extensions.proto";
6 package goby.common.protobuf;
8 message DatabaseRequest
15 required RequestType request_type = 1;
17 // used to inform gobyd of the google protobuf type used for a
18 // given publish request
19 optional string publish_protobuf_full_name = 2;
20 repeated .google.protobuf.FileDescriptorProto file_descriptor_proto = 3;
23 message DatabaseResponse
27 NEW_PUBLISH_ACCEPTED = 1;
28 NEW_PUBLISH_DENIED = 2;
30 SQL_QUERY_INVALID = 4;
32 required ResponseType response_type = 1;
34 repeated EmbeddedMessage sql_result = 2;
37 message DatabaseClientConfig
39 optional bool using_database = 10 [
41 (goby.field).description =
42 "True if using goby_database, false if no database is to be run"
44 optional string database_address = 11 [
45 (goby.field).example = "127.0.0.1",
46 (goby.field).description =
47 "TCP address to send database requests on. If omitted and "
48 "using_database==true, `ethernet_address` is used"
50 optional uint32 database_port = 12 [
51 (goby.field).example = "11142",
52 (goby.field).description =
53 "TCP port to send database requests on. If omitted and "
54 "using_database==true, `ethernet_port` is used"