syntax = "proto3"; package kratos.api; option go_package = "ky-go-kratos/app/ucenter/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; } HTTP http = 1; GRPC grpc = 2; } message Data { message Database { string driver = 1; string source = 2; } message Redis { string source = 1; } message Mongodb { string uri = 1; string db = 2; } Database database = 1; Redis redis = 2; Mongodb mongodb = 3; }