github.com/yoogoc/kratos-scaffold@v0.0.0-20240402032722-a538b3c18955/project_generator/resources/bff.conf.proto.example (about)

     1  syntax = "proto3";
     2  package kratos.api;
     3  
     4  option go_package = "internal/conf;conf";
     5  
     6  import "google/protobuf/duration.proto";
     7  
     8  message Bootstrap {
     9      Trace trace = 1;
    10      Server server = 2;
    11      Data data = 3;
    12      Log log = 4;
    13  }
    14  
    15  message Trace {
    16      string endpoint = 1;
    17  }
    18  
    19  message Server {
    20    message HTTP {
    21      string network = 1;
    22      string addr = 2;
    23      google.protobuf.Duration timeout = 3;
    24    }
    25    message GRPC {
    26      string network = 1;
    27      string addr = 2;
    28      google.protobuf.Duration timeout = 3;
    29    }
    30    HTTP http = 1;
    31    GRPC grpc = 2;
    32  }
    33  
    34  message Data {
    35    message Service {
    36      string url = 1;
    37    }
    38    Service example_service = 1;
    39  }
    40  
    41  message Log {
    42    string type = 1;
    43    string level = 2;
    44  }