github.com/kaydxh/golang@v0.0.131/pkg/webserver/webserver.proto (about)

     1  syntax = "proto3";
     2  
     3  package go.pkg.webserver;
     4  
     5  import "google/protobuf/duration.proto";
     6  
     7  option go_package = "github.com/kaydxh/golang/pkg/webserver;webserver";
     8  
     9  message Web {
    10    Net bind_address = 1;
    11    message Net {
    12      string host = 1;
    13      int32 port = 2;
    14    }
    15  
    16    Grpc grpc = 3;
    17    message Grpc {
    18      int32 max_concurrency_unary = 1;
    19      int32 max_concurrency_stream = 2;
    20      int32 max_receive_message_size = 3;
    21      int32 max_send_message_size = 4;
    22      google.protobuf.Duration timeout = 5;
    23    }
    24  
    25    Http http = 4;
    26    message Http {
    27      ApiFormatter api_formatter = 1;
    28      int32 max_concurrency = 2;
    29      // timeout 0 is not unlimited
    30      google.protobuf.Duration timeout = 3;
    31  
    32      enum ApiFormatter {
    33        api_noop = 0;
    34        tcloud_api_v30 = 1;
    35        trivial_api_v10 = 2;
    36        trivial_api_v20 = 3;
    37      }
    38    }
    39  
    40    Debug debug = 10;
    41    message Debug {
    42      bool enable_profiling = 1;
    43      repeated string disable_print_inoutput_methods = 2;
    44    }
    45  
    46    Monitor monitor = 11;
    47    message Monitor {
    48      Prometheus prometheus = 1;
    49  
    50      message Prometheus {
    51        bool enabled_metric_timer_cost = 1;
    52        bool enabled_metric_code_message = 2;
    53      }
    54    }
    55  }