|
@ -32,7 +32,6 @@ const ( |
|
|
SeaweedMessaging_PublishMessage_FullMethodName = "/messaging_pb.SeaweedMessaging/PublishMessage" |
|
|
SeaweedMessaging_PublishMessage_FullMethodName = "/messaging_pb.SeaweedMessaging/PublishMessage" |
|
|
SeaweedMessaging_SubscribeMessage_FullMethodName = "/messaging_pb.SeaweedMessaging/SubscribeMessage" |
|
|
SeaweedMessaging_SubscribeMessage_FullMethodName = "/messaging_pb.SeaweedMessaging/SubscribeMessage" |
|
|
SeaweedMessaging_PublishFollowMe_FullMethodName = "/messaging_pb.SeaweedMessaging/PublishFollowMe" |
|
|
SeaweedMessaging_PublishFollowMe_FullMethodName = "/messaging_pb.SeaweedMessaging/PublishFollowMe" |
|
|
SeaweedMessaging_FollowInMemoryMessages_FullMethodName = "/messaging_pb.SeaweedMessaging/FollowInMemoryMessages" |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
// SeaweedMessagingClient is the client API for SeaweedMessaging service.
|
|
|
// SeaweedMessagingClient is the client API for SeaweedMessaging service.
|
|
@ -59,7 +58,6 @@ type SeaweedMessagingClient interface { |
|
|
SubscribeMessage(ctx context.Context, in *SubscribeMessageRequest, opts ...grpc.CallOption) (SeaweedMessaging_SubscribeMessageClient, error) |
|
|
SubscribeMessage(ctx context.Context, in *SubscribeMessageRequest, opts ...grpc.CallOption) (SeaweedMessaging_SubscribeMessageClient, error) |
|
|
// The lead broker asks a follower broker to follow itself
|
|
|
// The lead broker asks a follower broker to follow itself
|
|
|
PublishFollowMe(ctx context.Context, in *PublishFollowMeRequest, opts ...grpc.CallOption) (*PublishFollowMeResponse, error) |
|
|
PublishFollowMe(ctx context.Context, in *PublishFollowMeRequest, opts ...grpc.CallOption) (*PublishFollowMeResponse, error) |
|
|
FollowInMemoryMessages(ctx context.Context, in *FollowInMemoryMessagesRequest, opts ...grpc.CallOption) (SeaweedMessaging_FollowInMemoryMessagesClient, error) |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type seaweedMessagingClient struct { |
|
|
type seaweedMessagingClient struct { |
|
@ -276,38 +274,6 @@ func (c *seaweedMessagingClient) PublishFollowMe(ctx context.Context, in *Publis |
|
|
return out, nil |
|
|
return out, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (c *seaweedMessagingClient) FollowInMemoryMessages(ctx context.Context, in *FollowInMemoryMessagesRequest, opts ...grpc.CallOption) (SeaweedMessaging_FollowInMemoryMessagesClient, error) { |
|
|
|
|
|
stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[4], SeaweedMessaging_FollowInMemoryMessages_FullMethodName, opts...) |
|
|
|
|
|
if err != nil { |
|
|
|
|
|
return nil, err |
|
|
|
|
|
} |
|
|
|
|
|
x := &seaweedMessagingFollowInMemoryMessagesClient{stream} |
|
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil { |
|
|
|
|
|
return nil, err |
|
|
|
|
|
} |
|
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil { |
|
|
|
|
|
return nil, err |
|
|
|
|
|
} |
|
|
|
|
|
return x, nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type SeaweedMessaging_FollowInMemoryMessagesClient interface { |
|
|
|
|
|
Recv() (*FollowInMemoryMessagesResponse, error) |
|
|
|
|
|
grpc.ClientStream |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type seaweedMessagingFollowInMemoryMessagesClient struct { |
|
|
|
|
|
grpc.ClientStream |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (x *seaweedMessagingFollowInMemoryMessagesClient) Recv() (*FollowInMemoryMessagesResponse, error) { |
|
|
|
|
|
m := new(FollowInMemoryMessagesResponse) |
|
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil { |
|
|
|
|
|
return nil, err |
|
|
|
|
|
} |
|
|
|
|
|
return m, nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// SeaweedMessagingServer is the server API for SeaweedMessaging service.
|
|
|
// SeaweedMessagingServer is the server API for SeaweedMessaging service.
|
|
|
// All implementations must embed UnimplementedSeaweedMessagingServer
|
|
|
// All implementations must embed UnimplementedSeaweedMessagingServer
|
|
|
// for forward compatibility
|
|
|
// for forward compatibility
|
|
@ -332,7 +298,6 @@ type SeaweedMessagingServer interface { |
|
|
SubscribeMessage(*SubscribeMessageRequest, SeaweedMessaging_SubscribeMessageServer) error |
|
|
SubscribeMessage(*SubscribeMessageRequest, SeaweedMessaging_SubscribeMessageServer) error |
|
|
// The lead broker asks a follower broker to follow itself
|
|
|
// The lead broker asks a follower broker to follow itself
|
|
|
PublishFollowMe(context.Context, *PublishFollowMeRequest) (*PublishFollowMeResponse, error) |
|
|
PublishFollowMe(context.Context, *PublishFollowMeRequest) (*PublishFollowMeResponse, error) |
|
|
FollowInMemoryMessages(*FollowInMemoryMessagesRequest, SeaweedMessaging_FollowInMemoryMessagesServer) error |
|
|
|
|
|
mustEmbedUnimplementedSeaweedMessagingServer() |
|
|
mustEmbedUnimplementedSeaweedMessagingServer() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -379,9 +344,6 @@ func (UnimplementedSeaweedMessagingServer) SubscribeMessage(*SubscribeMessageReq |
|
|
func (UnimplementedSeaweedMessagingServer) PublishFollowMe(context.Context, *PublishFollowMeRequest) (*PublishFollowMeResponse, error) { |
|
|
func (UnimplementedSeaweedMessagingServer) PublishFollowMe(context.Context, *PublishFollowMeRequest) (*PublishFollowMeResponse, error) { |
|
|
return nil, status.Errorf(codes.Unimplemented, "method PublishFollowMe not implemented") |
|
|
return nil, status.Errorf(codes.Unimplemented, "method PublishFollowMe not implemented") |
|
|
} |
|
|
} |
|
|
func (UnimplementedSeaweedMessagingServer) FollowInMemoryMessages(*FollowInMemoryMessagesRequest, SeaweedMessaging_FollowInMemoryMessagesServer) error { |
|
|
|
|
|
return status.Errorf(codes.Unimplemented, "method FollowInMemoryMessages not implemented") |
|
|
|
|
|
} |
|
|
|
|
|
func (UnimplementedSeaweedMessagingServer) mustEmbedUnimplementedSeaweedMessagingServer() {} |
|
|
func (UnimplementedSeaweedMessagingServer) mustEmbedUnimplementedSeaweedMessagingServer() {} |
|
|
|
|
|
|
|
|
// UnsafeSeaweedMessagingServer may be embedded to opt out of forward compatibility for this service.
|
|
|
// UnsafeSeaweedMessagingServer may be embedded to opt out of forward compatibility for this service.
|
|
@ -656,27 +618,6 @@ func _SeaweedMessaging_PublishFollowMe_Handler(srv interface{}, ctx context.Cont |
|
|
return interceptor(ctx, in, info, handler) |
|
|
return interceptor(ctx, in, info, handler) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func _SeaweedMessaging_FollowInMemoryMessages_Handler(srv interface{}, stream grpc.ServerStream) error { |
|
|
|
|
|
m := new(FollowInMemoryMessagesRequest) |
|
|
|
|
|
if err := stream.RecvMsg(m); err != nil { |
|
|
|
|
|
return err |
|
|
|
|
|
} |
|
|
|
|
|
return srv.(SeaweedMessagingServer).FollowInMemoryMessages(m, &seaweedMessagingFollowInMemoryMessagesServer{stream}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type SeaweedMessaging_FollowInMemoryMessagesServer interface { |
|
|
|
|
|
Send(*FollowInMemoryMessagesResponse) error |
|
|
|
|
|
grpc.ServerStream |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type seaweedMessagingFollowInMemoryMessagesServer struct { |
|
|
|
|
|
grpc.ServerStream |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (x *seaweedMessagingFollowInMemoryMessagesServer) Send(m *FollowInMemoryMessagesResponse) error { |
|
|
|
|
|
return x.ServerStream.SendMsg(m) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// SeaweedMessaging_ServiceDesc is the grpc.ServiceDesc for SeaweedMessaging service.
|
|
|
// SeaweedMessaging_ServiceDesc is the grpc.ServiceDesc for SeaweedMessaging service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
@ -745,11 +686,6 @@ var SeaweedMessaging_ServiceDesc = grpc.ServiceDesc{ |
|
|
Handler: _SeaweedMessaging_SubscribeMessage_Handler, |
|
|
Handler: _SeaweedMessaging_SubscribeMessage_Handler, |
|
|
ServerStreams: true, |
|
|
ServerStreams: true, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
StreamName: "FollowInMemoryMessages", |
|
|
|
|
|
Handler: _SeaweedMessaging_FollowInMemoryMessages_Handler, |
|
|
|
|
|
ServerStreams: true, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
Metadata: "mq.proto", |
|
|
Metadata: "mq.proto", |
|
|
} |
|
|
} |