add grpc support

This commit is contained in:
2025-03-07 15:24:36 -05:00
parent 00c8e2e4fc
commit 3b3f7f1f8b
3 changed files with 24 additions and 9 deletions

View File

@ -22,12 +22,20 @@ var testDefaultConfig = &AppConfig{
TimeFormat: TimeFormatLong,
},
HTTP: &HTTPConfig{
Enabled: true,
Listen: "127.0.0.1:8080",
LogRequests: false,
ReadTimeout: "10s",
WriteTimeout: "10s",
IdleTimeout: "1m",
},
GRPC: &GRPCConfig{
Enabled: false,
Listen: "127.0.0.1:8081",
LogRequests: false,
EnableReflection: true,
EnableInstrumentation: true,
},
OTEL: &OTELConfig{
Enabled: true,
PrometheusEnabled: true,