chore: update goctl interface{} to any (#2819)
* chore: update goctl interface{} to any
* chore: update goctl interface{} to any
This commit is contained in:
@@ -143,7 +143,7 @@ func file_hello_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_hello_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_hello_proto_goTypes = []interface{}{
|
||||
var file_hello_proto_goTypes = []any{
|
||||
(*HelloReq)(nil), // 0: hello.HelloReq
|
||||
(*HelloResp)(nil), // 1: hello.HelloResp
|
||||
}
|
||||
@@ -163,7 +163,7 @@ func file_hello_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_hello_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hello_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HelloReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -175,7 +175,7 @@ func file_hello_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_hello_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hello_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HelloResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
||||
@@ -71,7 +71,7 @@ func RegisterGreetServer(s grpc.ServiceRegistrar, srv GreetServer) {
|
||||
s.RegisterService(&Greet_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Greet_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _Greet_SayHello_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) {
|
||||
in := new(HelloReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
@@ -83,7 +83,7 @@ func _Greet_SayHello_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
Server: srv,
|
||||
FullMethod: "/hello.Greet/SayHello",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
handler := func(ctx context.Context, req any) (any, error) {
|
||||
return srv.(GreetServer).SayHello(ctx, req.(*HelloReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
|
||||
@@ -322,7 +322,7 @@ func file_hi_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_hi_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_hi_proto_goTypes = []interface{}{
|
||||
var file_hi_proto_goTypes = []any{
|
||||
(*HiReq)(nil), // 0: hi.HiReq
|
||||
(*HelloReq)(nil), // 1: hi.HelloReq
|
||||
(*HiResp)(nil), // 2: hi.HiResp
|
||||
@@ -350,7 +350,7 @@ func file_hi_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_hi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hi_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HiReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -362,7 +362,7 @@ func file_hi_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_hi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hi_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HelloReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -374,7 +374,7 @@ func file_hi_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_hi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hi_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HiResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -386,7 +386,7 @@ func file_hi_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_hi_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hi_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*HelloResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -398,7 +398,7 @@ func file_hi_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_hi_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hi_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EventReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@@ -410,7 +410,7 @@ func file_hi_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_hi_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_hi_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EventResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
||||
@@ -85,7 +85,7 @@ func RegisterGreetServer(s grpc.ServiceRegistrar, srv GreetServer) {
|
||||
s.RegisterService(&Greet_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Greet_SayHi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _Greet_SayHi_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) {
|
||||
in := new(HiReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
@@ -97,13 +97,13 @@ func _Greet_SayHi_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
Server: srv,
|
||||
FullMethod: "/hi.Greet/SayHi",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
handler := func(ctx context.Context, req any) (any, error) {
|
||||
return srv.(GreetServer).SayHi(ctx, req.(*HiReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Greet_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _Greet_SayHello_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) {
|
||||
in := new(HelloReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
@@ -115,7 +115,7 @@ func _Greet_SayHello_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
Server: srv,
|
||||
FullMethod: "/hi.Greet/SayHello",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
handler := func(ctx context.Context, req any) (any, error) {
|
||||
return srv.(GreetServer).SayHello(ctx, req.(*HelloReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
@@ -193,7 +193,7 @@ func RegisterEventServer(s grpc.ServiceRegistrar, srv EventServer) {
|
||||
s.RegisterService(&Event_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Event_AskQuestion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
func _Event_AskQuestion_Handler(srv any, ctx context.Context, dec func(any) error, interceptor grpc.UnaryServerInterceptor) (any, error) {
|
||||
in := new(EventReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
@@ -205,7 +205,7 @@ func _Event_AskQuestion_Handler(srv interface{}, ctx context.Context, dec func(i
|
||||
Server: srv,
|
||||
FullMethod: "/hi.Event/AskQuestion",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
handler := func(ctx context.Context, req any) (any, error) {
|
||||
return srv.(EventServer).AskQuestion(ctx, req.(*EventReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
|
||||
Reference in New Issue
Block a user