54 lines
1009 B
Protocol Buffer
54 lines
1009 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package conf;
|
|
|
|
option go_package = "github.com/tx7do/kratos-bootstrap/gen/api/go/conf/v1;conf";
|
|
|
|
import "google/protobuf/duration.proto";
|
|
|
|
// 配置服务
|
|
message RemoteConfig {
|
|
message Nacos {
|
|
string address = 1; // 服务端地址
|
|
uint64 port = 2; // 服务端端口
|
|
string key = 3; //
|
|
}
|
|
|
|
message Etcd {
|
|
repeated string endpoints = 1;
|
|
google.protobuf.Duration timeout = 2;
|
|
string key = 3; //
|
|
}
|
|
|
|
message Consul {
|
|
string scheme = 1; // 网络样式
|
|
string address = 2; // 服务端地址
|
|
string key = 3; //
|
|
}
|
|
|
|
message Apollo {
|
|
string endpoint = 1;
|
|
string app_id = 2;
|
|
string cluster = 3;
|
|
string namespace = 4;
|
|
string secret = 5;
|
|
}
|
|
|
|
message Kubernetes {
|
|
string namespace = 1;
|
|
}
|
|
|
|
message Polaris {
|
|
|
|
}
|
|
|
|
string type = 1;
|
|
|
|
Etcd etcd = 2;
|
|
Consul consul = 3;
|
|
Nacos nacos = 4;
|
|
Apollo apollo = 6;
|
|
Kubernetes kubernetes = 7;
|
|
Polaris polaris = 8;
|
|
}
|