feat: product number
CI / changes (push) Successful in 36s
CI / docker-bff (push) Successful in 3m8s
CI / docker-product (push) Successful in 3m36s
CI / docker-admin (push) Successful in 3m35s
CI / docker-user (push) Successful in 9s
CI / docker-ad (push) Successful in 29s
CI / docker-chore (push) Failing after 4s
CI / changes (push) Successful in 36s
CI / docker-bff (push) Successful in 3m8s
CI / docker-product (push) Successful in 3m36s
CI / docker-admin (push) Successful in 3m35s
CI / docker-user (push) Successful in 9s
CI / docker-ad (push) Successful in 29s
CI / docker-chore (push) Failing after 4s
This commit is contained in:
@@ -20,6 +20,7 @@ const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Chore_Policy_FullMethodName = "/chore.Chore/Policy"
|
||||
Chore_Test_FullMethodName = "/chore.Chore/Test"
|
||||
)
|
||||
|
||||
// ChoreClient is the client API for Chore service.
|
||||
@@ -27,6 +28,7 @@ const (
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
||||
type ChoreClient interface {
|
||||
Policy(ctx context.Context, in *PolicyReq, opts ...grpc.CallOption) (*Response, error)
|
||||
Test(ctx context.Context, in *TestReq, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
type choreClient struct {
|
||||
@@ -47,11 +49,22 @@ func (c *choreClient) Policy(ctx context.Context, in *PolicyReq, opts ...grpc.Ca
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *choreClient) Test(ctx context.Context, in *TestReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Chore_Test_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ChoreServer is the server API for Chore service.
|
||||
// All implementations must embed UnimplementedChoreServer
|
||||
// for forward compatibility.
|
||||
type ChoreServer interface {
|
||||
Policy(context.Context, *PolicyReq) (*Response, error)
|
||||
Test(context.Context, *TestReq) (*Response, error)
|
||||
mustEmbedUnimplementedChoreServer()
|
||||
}
|
||||
|
||||
@@ -65,6 +78,9 @@ type UnimplementedChoreServer struct{}
|
||||
func (UnimplementedChoreServer) Policy(context.Context, *PolicyReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Policy not implemented")
|
||||
}
|
||||
func (UnimplementedChoreServer) Test(context.Context, *TestReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Test not implemented")
|
||||
}
|
||||
func (UnimplementedChoreServer) mustEmbedUnimplementedChoreServer() {}
|
||||
func (UnimplementedChoreServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -104,6 +120,24 @@ func _Chore_Policy_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Chore_Test_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(TestReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ChoreServer).Test(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Chore_Test_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ChoreServer).Test(ctx, req.(*TestReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Chore_ServiceDesc is the grpc.ServiceDesc for Chore service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -115,6 +149,10 @@ var Chore_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "Policy",
|
||||
Handler: _Chore_Policy_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Test",
|
||||
Handler: _Chore_Test_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "chore/chore.proto",
|
||||
|
||||
Reference in New Issue
Block a user