Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
info-manager-proxy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
info-manager-proxy
Commits
78c4346f
Commit
78c4346f
authored
5 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6346 auf ecs log format umgestellt
parent
0af04ddb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
go.mod
+3
-4
3 additions, 4 deletions
go.mod
go.sum
+17
-0
17 additions, 0 deletions
go.sum
internal/config/config.go
+1
-0
1 addition, 0 deletions
internal/config/config.go
internal/mock/grpc_server.go
+1
-1
1 addition, 1 deletion
internal/mock/grpc_server.go
with
22 additions
and
5 deletions
go.mod
+
3
−
4
View file @
78c4346f
...
...
@@ -4,25 +4,24 @@ go 1.23.0
require (
github.com/grpc-ecosystem/grpc-gateway/v2
v2.20.0
github.com/sirupsen/logrus
v1.7.0
github.com/stretchr/testify
v1.9.0
go.elastic.co/ecslogrus
v1.0.0
google.golang.org/grpc
v1.64.0
gopkg.in/yaml.v3
v3.0.1
)
require
github.com/magefile/mage
v1.9.0 // indirect
require (
github.com/davecgh/go-spew
v1.1.1 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2
v2.20.0 // indirect
github.com/kelseyhightower/envconfig
v1.4.0
github.com/pmezard/go-difflib
v1.0.0 // indirect
github.com/stretchr/testify
v1.9.0 // indirect
golang.org/x/net
v0.26.0 // indirect
golang.org/x/sys
v0.21.0 // indirect
golang.org/x/text
v0.16.0 // indirect
google.golang.org/genproto/googleapis/api
v0.0.0-20240513163218-0867130af1f8 // indirect
google.golang.org/genproto/googleapis/rpc
v0.0.0-20240513163218-0867130af1f8 // indirect
google.golang.org/grpc
v1.64.0 // indirect
google.golang.org/grpc/cmd/protoc-gen-go-grpc
v1.4.0 // indirect
google.golang.org/protobuf
v1.34.2 // indirect
gopkg.in/yaml.v3
v3.0.1 // indirect
)
This diff is collapsed.
Click to expand it.
go.sum
+
17
−
0
View file @
78c4346f
github.com/davecgh/go-spew
v1.1.0/go.mod h1:
J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew
v1.1.1 h1:
vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew
v1.1.1/go.mod h1:
J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/grpc-ecosystem/grpc-gateway/v2
v2.20.0 h1:
bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0=
github.com/grpc-ecosystem/grpc-gateway/v2
v2.20.0/go.mod h1:
P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k=
github.com/kelseyhightower/envconfig
v1.4.0 h1:
Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=
github.com/kelseyhightower/envconfig
v1.4.0/go.mod h1:
cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg=
github.com/kr/pretty
v0.1.0/go.mod h1:
dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pty
v1.1.1/go.mod h1:
pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text
v0.1.0/go.mod h1:
4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/magefile/mage
v1.9.0 h1:
t3AU2wNwehMCW97vuqQLtw6puppWXHO+O2MHo5a50XE=
github.com/magefile/mage
v1.9.0/go.mod h1:
z5UZb/iS3GoOSn0JgWuiw7dxlurVYTu+/jHXqQg881A=
github.com/pkg/errors
v0.9.1/go.mod h1:
bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib
v1.0.0 h1:
4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib
v1.0.0/go.mod h1:
iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus
v1.7.0 h1:
ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM=
github.com/sirupsen/logrus
v1.7.0/go.mod h1:
yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/stretchr/objx
v0.1.0/go.mod h1:
HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify
v1.2.2/go.mod h1:
a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify
v1.5.0/go.mod h1:
5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify
v1.9.0 h1:
HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify
v1.9.0/go.mod h1:
r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
go.elastic.co/ecslogrus
v1.0.0 h1:
o1qvcCNaq+eyH804AuK6OOiUupLIXVDfYjDtSLPwukM=
go.elastic.co/ecslogrus
v1.0.0/go.mod h1:
vMdpljurPbwu+iFmNc/HSWCkn1Fu/dYde1o/adaEczo=
golang.org/x/net
v0.26.0 h1:
soB7SVo0PWrY4vPW/+ay0jKDNScG2X9wFeYlXIvJsOQ=
golang.org/x/net
v0.26.0/go.mod h1:
5YKkiSynbBIh3p6iOc/vibscux0x38BZDkn8sCUPxHE=
golang.org/x/sys
v0.0.0-20191026070338-33540a1f6037/go.mod h1:
h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys
v0.21.0 h1:
rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=
golang.org/x/sys
v0.21.0/go.mod h1:
/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text
v0.15.0 h1:
h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=
...
...
@@ -29,5 +44,7 @@ google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHh
google.golang.org/protobuf
v1.34.2 h1:
6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
google.golang.org/protobuf
v1.34.2/go.mod h1:
qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
gopkg.in/check.v1
v0.0.0-20161208181325-20d25e280405/go.mod h1:
Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1
v1.0.0-20180628173108-788fd7840127/go.mod h1:
Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2
v2.2.2/go.mod h1:
hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3
v3.0.1 h1:
fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3
v3.0.1/go.mod h1:
K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
This diff is collapsed.
Click to expand it.
internal/config/config.go
+
1
−
0
View file @
78c4346f
...
...
@@ -58,6 +58,7 @@ type Config struct {
func
LoadConfig
(
configFilePath
...
string
)
Config
{
var
config
Config
log
.
SetFormatter
(
&
ecslogrus
.
Formatter
{})
configFile
:=
defaultConfig
...
...
This diff is collapsed.
Click to expand it.
internal/mock/grpc_server.go
+
1
−
1
View file @
78c4346f
...
...
@@ -73,7 +73,7 @@ func StartGrpcServer() *grpc.Server {
log
.
Fatal
(
fmt
.
Sprintf
(
"gRPC server failed to listen: %v"
,
err
))
}
log
.
Info
(
"gRPC server listening on port %v"
,
GrpcMockPort
)
log
.
Info
(
fmt
.
Sprintf
(
"gRPC server listening on port %v"
,
GrpcMockPort
)
)
if
err
:=
s
.
Serve
(
lis
);
err
!=
nil
{
log
.
Fatal
(
fmt
.
Sprintf
(
"gRPC server failed to serve: %v"
,
err
))
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment