向宁 ed47904a85 chore: initialize Kratos project skeleton, add proto config and Makefile
- Add Makefile with api/config/wire/build/run/test/clean targets
- Update buf.yaml with api, internal/conf, and third_party modules
- Update buf.gen.yaml with protobuf, grpc, and grpc-gateway plugins
- Add internal/conf/conf.proto (Kratos config schema: Bootstrap/Server/Data/Auth)
- Generate internal/conf/conf.pb.go via buf
- Add configs/config.yaml with HTTP/gRPC server, Postgres, S3, and auth settings
- Add third_party/google/api proto files (annotations, http)
- Remove old Gin-based layers: internal/api, internal/infrastructure/mediator,
  internal/middleware, internal/common, docs
- Update .gitignore to exclude server binary and bin/
2026-05-25 12:37:45 +08:00

47 lines
742 B
Protocol Buffer

syntax = "proto3";
package conf;
option go_package = "rag/file-system/internal/conf";
import "google/protobuf/duration.proto";
message Bootstrap {
Server server = 1;
Data data = 2;
Auth auth = 3;
}
message Server {
message HTTP {
string addr = 1;
google.protobuf.Duration timeout = 2;
}
message GRPC {
string addr = 1;
google.protobuf.Duration timeout = 2;
}
HTTP http = 1;
GRPC grpc = 2;
}
message Data {
message Database {
string driver = 1;
string source = 2;
}
message S3 {
string endpoint = 1;
string access_key = 2;
string secret_key = 3;
string region = 4;
}
Database database = 1;
S3 s3 = 2;
}
message Auth {
string jwt_key = 1;
string grpc_addr = 2;
}