move to micro v4
All checks were successful
test / test (push) Successful in 3m27s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-03-07 12:52:22 +03:00
parent d6b0f1feb1
commit e1b73741be
9 changed files with 110 additions and 65 deletions

View File

@@ -1,24 +1,20 @@
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
// versions:
// - protoc-gen-go-micro v3.10.2
// - protoc v3.21.12
// - protoc-gen-go-micro v4.1.0
// - protoc v5.29.3
// source: service.proto
package servicepb
import (
context "context"
proto "go.unistack.org/micro-config-service/v3/proto"
v3 "go.unistack.org/micro-server-http/v3"
client "go.unistack.org/micro/v3/client"
proto "go.unistack.org/micro-config-service/v4/proto"
client "go.unistack.org/micro/v4/client"
)
var (
ConfigName = "Config"
)
var (
ConfigServerEndpoints = []v3.EndpointMetadata{}
)
type ConfigClient interface {
Load(ctx context.Context, req *proto.LoadRequest, opts ...client.CallOption) (*proto.LoadResponse, error)

View File

@@ -1,14 +1,14 @@
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
// protoc-gen-go-micro version: v3.10.2
// protoc-gen-go-micro version: v4.1.0
// source: service.proto
package servicepb
import (
context "context"
proto "go.unistack.org/micro-config-service/v3/proto"
client "go.unistack.org/micro/v3/client"
server "go.unistack.org/micro/v3/server"
proto "go.unistack.org/micro-config-service/v4/proto"
client "go.unistack.org/micro/v4/client"
server "go.unistack.org/micro/v4/server"
)
type configClient struct {
@@ -59,6 +59,5 @@ func RegisterConfigServer(s server.Server, sh ConfigServer, opts ...server.Handl
config
}
h := &configServer{sh}
var nopts []server.HandlerOption
return s.Handle(s.NewHandler(&Config{h}, append(nopts, opts...)...))
return s.Handle(s.NewHandler(&Config{h}, opts...))
}