diff --git a/Dockerfile b/Dockerfile index 7a080a48..318f8fad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23-alpine3.20 as protoc-builder +FROM golang:1.23-alpine3.20 AS protoc-builder ENV PROTOC_VERSION=28.2 ARG TARGETARCH diff --git a/go.mod b/go.mod index f5c8e1b5..da195c7e 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/bavix/features v1.0.0 github.com/bavix/gripmock-sdk-go v1.0.5 github.com/bavix/gripmock-ui v1.0.0-alpha9 - github.com/bavix/gripmock/protogen v0.0.0-20240924151019-bd43d64ad313 + github.com/bavix/gripmock/protogen v0.0.0-20241004180513-0c1a26e578c2 github.com/cristalhq/base64 v0.1.2 github.com/goccy/go-yaml v1.12.0 github.com/google/uuid v1.6.0 @@ -43,7 +43,7 @@ require ( github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/spf13/cast v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect + golang.org/x/exp v0.0.0-20241004190924-225e2abe05e6 // indirect golang.org/x/net v0.30.0 // indirect golang.org/x/sys v0.26.0 // indirect golang.org/x/text v0.19.0 // indirect diff --git a/go.sum b/go.sum index 22d4d81e..e1b96b01 100644 --- a/go.sum +++ b/go.sum @@ -7,8 +7,8 @@ github.com/bavix/gripmock-sdk-go v1.0.5 h1:DFZIz5aobjBIsMmBptHkuSdhGzOPlqp3Gn1qH github.com/bavix/gripmock-sdk-go v1.0.5/go.mod h1:/+9vHE4ccPeV+5RecNGpy9NMwccDglH3IeXsrLWVvaY= github.com/bavix/gripmock-ui v1.0.0-alpha9 h1:7HLtboi9XMwXSvoGmrDaaf6mBOA/wreGMkLa1DwQhwk= github.com/bavix/gripmock-ui v1.0.0-alpha9/go.mod h1:XEH4YYEKL+wEDtONntoWm6JxjbVWzl7XtDYztUTBfeA= -github.com/bavix/gripmock/protogen v0.0.0-20240924151019-bd43d64ad313 h1:fv+WRudvdsya7Vtd5IVxhLPPgdUi3Gm7hsvfMsQrEpk= -github.com/bavix/gripmock/protogen v0.0.0-20240924151019-bd43d64ad313/go.mod h1:CZq5XycSXCrHDtmhtECqpOT2dSrw5wxzBIIIxL7GiVE= +github.com/bavix/gripmock/protogen v0.0.0-20241004180513-0c1a26e578c2 h1:w54NvfIugfqo8fe1n8IzoncH9l2AtEIdgaBcQ0QViWA= +github.com/bavix/gripmock/protogen v0.0.0-20241004180513-0c1a26e578c2/go.mod h1:lBMh0QN+Rw86t9flN7oeJKT+V+VaU6JhDI66aWgRjuE= github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= github.com/bufbuild/protocompile v0.14.1 h1:iA73zAf/fyljNjQKwYzUHD6AD4R8KMasmwa/FBatYVw= github.com/bufbuild/protocompile v0.14.1/go.mod h1:ppVdAIhbr2H8asPk6k4pY7t9zB1OU5DoEw9xY/FUi1c= @@ -103,8 +103,8 @@ github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsT github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= -golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk= -golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY= +golang.org/x/exp v0.0.0-20241004190924-225e2abe05e6 h1:1wqE9dj9NpSm04INVsJhhEUzhuDVjbcyKH91sVyPATw= +golang.org/x/exp v0.0.0-20241004190924-225e2abe05e6/go.mod h1:NQtJDoLvd6faHhE7m4T/1IY708gDefGGjR/iUW8yQQ8= golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= diff --git a/go.work.sum b/go.work.sum index 9ac66e93..46ab74ab 100644 --- a/go.work.sum +++ b/go.work.sum @@ -318,7 +318,6 @@ go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v8 golang.org/x/arch v0.4.0 h1:A8WCeEWhLwPBKNbFi5Wv5UTCBx5zzubnXDlMOFAzFMc= golang.org/x/arch v0.4.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8= golang.org/x/crypto v0.26.0/go.mod h1:GY7jblb9wI+FOo5y8/S2oY4zWP07AkOJ4+jxCqdqn54= -golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0= golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= @@ -352,6 +351,8 @@ golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= +golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ= +golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= diff --git a/internal/app/rest_server.go b/internal/app/rest_server.go index b509c1bb..0aa21b99 100644 --- a/internal/app/rest_server.go +++ b/internal/app/rest_server.go @@ -234,7 +234,7 @@ func (h *RestServer) SearchStubs(w http.ResponseWriter, r *http.Request) { if result.Found() == nil { w.WriteHeader(http.StatusNotFound) - h.writeResponseError(stubNotFoundError2(query, result), w) + h.writeResponseError(stubNotFoundError(query, result), w) return } diff --git a/internal/app/storage.go b/internal/app/storage.go index fc43febb..17f220af 100644 --- a/internal/app/storage.go +++ b/internal/app/storage.go @@ -7,7 +7,7 @@ import ( "github.com/gripmock/stuber" ) -func stubNotFoundError2(expect stuber.Query, result *stuber.Result) error { +func stubNotFoundError(expect stuber.Query, result *stuber.Result) error { template := fmt.Sprintf("Can't find stub \n\nService: %s \n\nMethod: %s \n\nInput\n\n", expect.Service, expect.Method) expectString, err := json.MarshalIndent(expect.Data, "", "\t") diff --git a/internal/domain/rest/api.gen.go b/internal/domain/rest/api.gen.go index f575ac2e..3f428df1 100644 --- a/internal/domain/rest/api.gen.go +++ b/internal/domain/rest/api.gen.go @@ -1,6 +1,6 @@ // Package rest provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT. package rest import ( @@ -162,7 +162,6 @@ type MiddlewareFunc func(http.Handler) http.Handler // Liveness operation middleware func (siw *ServerInterfaceWrapper) Liveness(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.Liveness(w, r) @@ -172,12 +171,11 @@ func (siw *ServerInterfaceWrapper) Liveness(w http.ResponseWriter, r *http.Reque handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // Readiness operation middleware func (siw *ServerInterfaceWrapper) Readiness(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.Readiness(w, r) @@ -187,12 +185,11 @@ func (siw *ServerInterfaceWrapper) Readiness(w http.ResponseWriter, r *http.Requ handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // ServicesList operation middleware func (siw *ServerInterfaceWrapper) ServicesList(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.ServicesList(w, r) @@ -202,12 +199,11 @@ func (siw *ServerInterfaceWrapper) ServicesList(w http.ResponseWriter, r *http.R handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // ServiceMethodsList operation middleware func (siw *ServerInterfaceWrapper) ServiceMethodsList(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() var err error @@ -228,12 +224,11 @@ func (siw *ServerInterfaceWrapper) ServiceMethodsList(w http.ResponseWriter, r * handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // PurgeStubs operation middleware func (siw *ServerInterfaceWrapper) PurgeStubs(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.PurgeStubs(w, r) @@ -243,12 +238,11 @@ func (siw *ServerInterfaceWrapper) PurgeStubs(w http.ResponseWriter, r *http.Req handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // ListStubs operation middleware func (siw *ServerInterfaceWrapper) ListStubs(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.ListStubs(w, r) @@ -258,12 +252,11 @@ func (siw *ServerInterfaceWrapper) ListStubs(w http.ResponseWriter, r *http.Requ handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // AddStub operation middleware func (siw *ServerInterfaceWrapper) AddStub(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.AddStub(w, r) @@ -273,12 +266,11 @@ func (siw *ServerInterfaceWrapper) AddStub(w http.ResponseWriter, r *http.Reques handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // BatchStubsDelete operation middleware func (siw *ServerInterfaceWrapper) BatchStubsDelete(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.BatchStubsDelete(w, r) @@ -288,12 +280,11 @@ func (siw *ServerInterfaceWrapper) BatchStubsDelete(w http.ResponseWriter, r *ht handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // SearchStubs operation middleware func (siw *ServerInterfaceWrapper) SearchStubs(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.SearchStubs(w, r) @@ -303,12 +294,11 @@ func (siw *ServerInterfaceWrapper) SearchStubs(w http.ResponseWriter, r *http.Re handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // ListUnusedStubs operation middleware func (siw *ServerInterfaceWrapper) ListUnusedStubs(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.ListUnusedStubs(w, r) @@ -318,12 +308,11 @@ func (siw *ServerInterfaceWrapper) ListUnusedStubs(w http.ResponseWriter, r *htt handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // ListUsedStubs operation middleware func (siw *ServerInterfaceWrapper) ListUsedStubs(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() handler := http.Handler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { siw.Handler.ListUsedStubs(w, r) @@ -333,12 +322,11 @@ func (siw *ServerInterfaceWrapper) ListUsedStubs(w http.ResponseWriter, r *http. handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // DeleteStubByID operation middleware func (siw *ServerInterfaceWrapper) DeleteStubByID(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() var err error @@ -359,12 +347,11 @@ func (siw *ServerInterfaceWrapper) DeleteStubByID(w http.ResponseWriter, r *http handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } // FindByID operation middleware func (siw *ServerInterfaceWrapper) FindByID(w http.ResponseWriter, r *http.Request) { - ctx := r.Context() var err error @@ -385,7 +372,7 @@ func (siw *ServerInterfaceWrapper) FindByID(w http.ResponseWriter, r *http.Reque handler = middleware(handler) } - handler.ServeHTTP(w, r.WithContext(ctx)) + handler.ServeHTTP(w, r) } type UnescapedCookieParamError struct { diff --git a/internal/infra/storage/stubs.go b/internal/infra/storage/stubs.go index c4751fee..931bc14b 100644 --- a/internal/infra/storage/stubs.go +++ b/internal/infra/storage/stubs.go @@ -6,6 +6,7 @@ import ( "os" "path" "strings" + "time" "github.com/gripmock/stuber" "github.com/rs/zerolog" @@ -36,15 +37,32 @@ func (s *Extender) Wait() { } func (s *Extender) ReadFromPath(ctx context.Context, pathDir string) { - defer close(s.ch) - s.readFromPath(ctx, pathDir) + s.readFromPath(ctx, pathDir, false) + close(s.ch) + + go func() { + ticker := time.NewTicker(1 * time.Second) + defer ticker.Stop() + + for { + select { + case <-ticker.C: + s.readFromPath(ctx, pathDir, true) + case <-ctx.Done(): + return + } + } + }() } // readFromPath reads all the stubs from the given directory and its subdirectories, // and adds them to the server's stub store. // The stub files can be in yaml or json format. // If a file is in yaml format, it will be converted to json format. -func (s *Extender) readFromPath(ctx context.Context, pathDir string) { +// +// If `update` is true, the stubs will be updated in the server's stub store. +// Otherwise, the stubs will be added to the server's stub store. +func (s *Extender) readFromPath(ctx context.Context, pathDir string, update bool) { files, err := os.ReadDir(pathDir) if err != nil { zerolog.Ctx(ctx). @@ -57,7 +75,7 @@ func (s *Extender) readFromPath(ctx context.Context, pathDir string) { for _, file := range files { // If the file is a directory, recursively read its stubs. if file.IsDir() { - s.readFromPath(ctx, path.Join(pathDir, file.Name())) + s.readFromPath(ctx, path.Join(pathDir, file.Name()), update) continue } @@ -74,7 +92,12 @@ func (s *Extender) readFromPath(ctx context.Context, pathDir string) { continue } - s.storage.PutMany(stubs...) + // Update or add the stubs to the server's stub store. + if update { + s.storage.UpdateMany(stubs...) + } else { + s.storage.PutMany(stubs...) + } } } diff --git a/protogen/example/ms/ms.pb.go b/protogen/example/ms/ms.pb.go index 13c54b21..c59adade 100644 --- a/protogen/example/ms/ms.pb.go +++ b/protogen/example/ms/ms.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: ms.proto package ms diff --git a/protogen/example/ms/ms_grpc.pb.go b/protogen/example/ms/ms_grpc.pb.go index cb8e0ebe..8b1c7c8c 100644 --- a/protogen/example/ms/ms_grpc.pb.go +++ b/protogen/example/ms/ms_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: ms.proto package ms diff --git a/protogen/example/multi-files/file1.pb.go b/protogen/example/multi-files/file1.pb.go index 24d367ae..c180bc35 100644 --- a/protogen/example/multi-files/file1.pb.go +++ b/protogen/example/multi-files/file1.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: file1.proto package multi_files diff --git a/protogen/example/multi-files/file1_grpc.pb.go b/protogen/example/multi-files/file1_grpc.pb.go index de87f110..74e9000f 100644 --- a/protogen/example/multi-files/file1_grpc.pb.go +++ b/protogen/example/multi-files/file1_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: file1.proto package multi_files diff --git a/protogen/example/multi-files/file2.pb.go b/protogen/example/multi-files/file2.pb.go index 5adaff2d..9dc44c8f 100644 --- a/protogen/example/multi-files/file2.pb.go +++ b/protogen/example/multi-files/file2.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: file2.proto package multi_files diff --git a/protogen/example/multi-files/file2_grpc.pb.go b/protogen/example/multi-files/file2_grpc.pb.go index 8699a128..22fb1b7b 100644 --- a/protogen/example/multi-files/file2_grpc.pb.go +++ b/protogen/example/multi-files/file2_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: file2.proto package multi_files diff --git a/protogen/example/multi-package/bar/bar.pb.go b/protogen/example/multi-package/bar/bar.pb.go index 9cad8297..827a7560 100644 --- a/protogen/example/multi-package/bar/bar.pb.go +++ b/protogen/example/multi-package/bar/bar.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: bar/bar.proto package bar diff --git a/protogen/example/multi-package/foo.pb.go b/protogen/example/multi-package/foo.pb.go index a922adbf..1db062f2 100644 --- a/protogen/example/multi-package/foo.pb.go +++ b/protogen/example/multi-package/foo.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: foo.proto // simulating neighboring .proto file diff --git a/protogen/example/multi-package/hello.pb.go b/protogen/example/multi-package/hello.pb.go index d8ff3045..9625f0d2 100644 --- a/protogen/example/multi-package/hello.pb.go +++ b/protogen/example/multi-package/hello.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: hello.proto package multi_package diff --git a/protogen/example/multi-package/hello_grpc.pb.go b/protogen/example/multi-package/hello_grpc.pb.go index c0f6e9d2..9df762d3 100644 --- a/protogen/example/multi-package/hello_grpc.pb.go +++ b/protogen/example/multi-package/hello_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: hello.proto package multi_package diff --git a/protogen/example/one-of/oneof.pb.go b/protogen/example/one-of/oneof.pb.go index 17f8dd44..cf182593 100644 --- a/protogen/example/one-of/oneof.pb.go +++ b/protogen/example/one-of/oneof.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: oneof.proto package one_of diff --git a/protogen/example/one-of/oneof_grpc.pb.go b/protogen/example/one-of/oneof_grpc.pb.go index 31a3c429..57d8cc28 100644 --- a/protogen/example/one-of/oneof_grpc.pb.go +++ b/protogen/example/one-of/oneof_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: oneof.proto package one_of diff --git a/protogen/example/simple/simple.pb.go b/protogen/example/simple/simple.pb.go index 4ac39b8f..494d3705 100644 --- a/protogen/example/simple/simple.pb.go +++ b/protogen/example/simple/simple.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: simple.proto package simple diff --git a/protogen/example/simple/simple_grpc.pb.go b/protogen/example/simple/simple_grpc.pb.go index b95b5c67..04152ada 100644 --- a/protogen/example/simple/simple_grpc.pb.go +++ b/protogen/example/simple/simple_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: simple.proto package simple diff --git a/protogen/example/stream/stream.pb.go b/protogen/example/stream/stream.pb.go index 4ef39075..22a8fef4 100644 --- a/protogen/example/stream/stream.pb.go +++ b/protogen/example/stream/stream.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: stream.proto package stream diff --git a/protogen/example/stream/stream_grpc.pb.go b/protogen/example/stream/stream_grpc.pb.go index 71a8f13d..a01b2dac 100644 --- a/protogen/example/stream/stream_grpc.pb.go +++ b/protogen/example/stream/stream_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: stream.proto package stream diff --git a/protogen/example/strictmode/method.pb.go b/protogen/example/strictmode/method.pb.go index d663926d..5ccbc08f 100644 --- a/protogen/example/strictmode/method.pb.go +++ b/protogen/example/strictmode/method.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: method.proto package strictmode diff --git a/protogen/example/strictmode/method_grpc.pb.go b/protogen/example/strictmode/method_grpc.pb.go index c50ba650..e6a45e88 100644 --- a/protogen/example/strictmode/method_grpc.pb.go +++ b/protogen/example/strictmode/method_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: method.proto package strictmode diff --git a/protogen/example/stub-subfolders/stub-subfolders.pb.go b/protogen/example/stub-subfolders/stub-subfolders.pb.go index cb2b9c97..fd6f16a2 100644 --- a/protogen/example/stub-subfolders/stub-subfolders.pb.go +++ b/protogen/example/stub-subfolders/stub-subfolders.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: stub-subfolders.proto package stub_subfolders diff --git a/protogen/example/stub-subfolders/stub-subfolders_grpc.pb.go b/protogen/example/stub-subfolders/stub-subfolders_grpc.pb.go index 1d02db53..8d8860b0 100644 --- a/protogen/example/stub-subfolders/stub-subfolders_grpc.pb.go +++ b/protogen/example/stub-subfolders/stub-subfolders_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: stub-subfolders.proto package stub_subfolders diff --git a/protogen/example/well_known_types/wkt.pb.go b/protogen/example/well_known_types/wkt.pb.go index 7daf962d..ce2dcc53 100644 --- a/protogen/example/well_known_types/wkt.pb.go +++ b/protogen/example/well_known_types/wkt.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.34.2 -// protoc v5.27.3 +// protoc v5.28.2 // source: wkt.proto package well_known_types diff --git a/protogen/example/well_known_types/wkt_grpc.pb.go b/protogen/example/well_known_types/wkt_grpc.pb.go index 5dfa7717..2c9944ce 100644 --- a/protogen/example/well_known_types/wkt_grpc.pb.go +++ b/protogen/example/well_known_types/wkt_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.5.1 -// - protoc v5.27.3 +// - protoc v5.28.2 // source: wkt.proto package well_known_types