diff --git a/meter/handler/handler.proto b/meter/handler/handler.proto index 6b7e61b5..05846a5f 100644 --- a/meter/handler/handler.proto +++ b/meter/handler/handler.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package meter; -option go_package = "github.com/unistack-org/micro/v3/meter/handler;pb"; +package micro.meter.handler; +option go_package = "github.com/unistack-org/micro/v3/meter/handler;handler"; import "api/annotations.proto"; import "openapiv2/annotations.proto"; diff --git a/meter/handler/handler_micro.pb.go b/meter/handler/handler_micro.pb.go index a3bb9400..5adb70de 100644 --- a/meter/handler/handler_micro.pb.go +++ b/meter/handler/handler_micro.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-micro // source: handler.proto -package pb +package handler import ( context "context" diff --git a/meter/handler/handler_micro_http.pb.go b/meter/handler/handler_micro_http.pb.go index 5c59700b..ee953bfd 100644 --- a/meter/handler/handler_micro_http.pb.go +++ b/meter/handler/handler_micro_http.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-micro // source: handler.proto -package pb +package handler import ( context "context" diff --git a/server/health/health.go b/server/health/health.go index a615919b..7f73eff2 100644 --- a/server/health/health.go +++ b/server/health/health.go @@ -53,7 +53,7 @@ func Version(version string) Option { } } -func NewHealth(opts ...Option) *handler { +func NewHandler(opts ...Option) *handler { options := Options{} for _, o := range opts { o(&options) diff --git a/server/health/health.proto b/server/health/health.proto index 86b822b0..2e2c3f6a 100644 --- a/server/health/health.proto +++ b/server/health/health.proto @@ -1,7 +1,7 @@ syntax = "proto3"; -package health; -option go_package = "github.com/unistack-org/micro/v3/server/health;pb"; +package micro.server.health; +option go_package = "github.com/unistack-org/micro/v3/server/health;health"; import "api/annotations.proto"; import "openapiv2/annotations.proto"; diff --git a/server/health/health_micro.pb.go b/server/health/health_micro.pb.go index ec483688..1b63d85c 100644 --- a/server/health/health_micro.pb.go +++ b/server/health/health_micro.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-micro // source: health.proto -package pb +package health import ( context "context" diff --git a/server/health/health_micro_http.pb.go b/server/health/health_micro_http.pb.go index 92f5f4ce..b14f865b 100644 --- a/server/health/health_micro_http.pb.go +++ b/server/health/health_micro_http.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-micro // source: health.proto -package pb +package health import ( context "context"