To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit fb0daafa authored by Go Protoc Bot's avatar Go Protoc Bot
Browse files

update

parent d54f5d27
This diff is collapsed.
......@@ -59,6 +59,8 @@ type MusicroomClient interface {
GetConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Config, error)
// UpdatePrices updates the prices of products stored in the backend
UpdatePrices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
// MigrateUser is a special endpoint for the AAI Migration Tool to migrate users from the old system
MigrateUser(ctx context.Context, in *MigrateUserRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}
type musicroomClient struct {
......@@ -249,6 +251,15 @@ func (c *musicroomClient) UpdatePrices(ctx context.Context, in *empty.Empty, opt
return out, nil
}
func (c *musicroomClient) MigrateUser(ctx context.Context, in *MigrateUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/vseth.sip.musicroom.Musicroom/MigrateUser", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MusicroomServer is the server API for Musicroom service.
// All implementations must embed UnimplementedMusicroomServer
// for forward compatibility
......@@ -293,6 +304,8 @@ type MusicroomServer interface {
GetConfig(context.Context, *empty.Empty) (*Config, error)
// UpdatePrices updates the prices of products stored in the backend
UpdatePrices(context.Context, *empty.Empty) (*empty.Empty, error)
// MigrateUser is a special endpoint for the AAI Migration Tool to migrate users from the old system
MigrateUser(context.Context, *MigrateUserRequest) (*empty.Empty, error)
mustEmbedUnimplementedMusicroomServer()
}
......@@ -360,6 +373,9 @@ func (UnimplementedMusicroomServer) GetConfig(context.Context, *empty.Empty) (*C
func (UnimplementedMusicroomServer) UpdatePrices(context.Context, *empty.Empty) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdatePrices not implemented")
}
func (UnimplementedMusicroomServer) MigrateUser(context.Context, *MigrateUserRequest) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method MigrateUser not implemented")
}
func (UnimplementedMusicroomServer) mustEmbedUnimplementedMusicroomServer() {}
// UnsafeMusicroomServer may be embedded to opt out of forward compatibility for this service.
......@@ -733,6 +749,24 @@ func _Musicroom_UpdatePrices_Handler(srv interface{}, ctx context.Context, dec f
return interceptor(ctx, in, info, handler)
}
func _Musicroom_MigrateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(MigrateUserRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MusicroomServer).MigrateUser(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/vseth.sip.musicroom.Musicroom/MigrateUser",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MusicroomServer).MigrateUser(ctx, req.(*MigrateUserRequest))
}
return interceptor(ctx, in, info, handler)
}
// Musicroom_ServiceDesc is the grpc.ServiceDesc for Musicroom service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
......@@ -820,6 +854,10 @@ var Musicroom_ServiceDesc = grpc.ServiceDesc{
MethodName: "UpdatePrices",
Handler: _Musicroom_UpdatePrices_Handler,
},
{
MethodName: "MigrateUser",
Handler: _Musicroom_MigrateUser_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "vseth/sip/musicroom/musicroom.proto",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment