123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- syntax = "proto3";
- package kratos.api;
- option go_package = "w303a/server/app/user/internal/conf;conf";
- import "google/protobuf/duration.proto";
- message Bootstrap {
- Server server = 1;
- Data data = 2;
- }
- message Server {
- message HTTP {
- string network = 1;
- string addr = 2;
- google.protobuf.Duration timeout = 3;
- }
- message GRPC {
- string network = 1;
- string addr = 2;
- google.protobuf.Duration timeout = 3;
- }
- message Registry {
- message Etcd {
- repeated string endpoints = 1;
- }
- Etcd etcd = 1;
- }
- message UCloud {
- string project_id = 1;
- string public_key = 2;
- string private_key = 3;
- }
- message Logger {
- string output = 1;
- int32 max_size = 2;
- int32 max_backups = 3;
- int32 max_age = 4;
- bool compress = 5;
- }
- HTTP http = 1;
- GRPC grpc = 2;
- string secret_key = 3;
- UCloud ucloud = 4;
- Registry registry = 5;
- Logger logger = 6;
- }
- message Data {
- message Database {
- string driver = 1;
- string source = 2;
- }
- message Redis {
- string network = 1;
- string addr = 2;
- string password = 3;
- int32 db = 4;
- google.protobuf.Duration read_timeout = 5;
- google.protobuf.Duration write_timeout = 6;
- }
- message Mongo {
- string addr = 1;
- string database = 2;
- }
- Database database = 1;
- Redis redis = 2;
- Mongo mongo = 3;
- }
|