2021-12-05 16:42:25 +08:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2023-02-06 13:24:21 +08:00
// versions:
2024-10-25 12:35:11 +08:00
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.28.1
2023-02-06 13:24:21 +08:00
// source: mq.proto
2021-12-05 16:42:25 +08:00
2022-07-02 13:43:25 +08:00
package mq_pb
2021-12-05 16:42:25 +08:00
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
2024-10-25 12:35:11 +08:00
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
2021-12-05 16:42:25 +08:00
2023-10-13 12:38:34 +08:00
const (
SeaweedMessaging_FindBrokerLeader_FullMethodName = "/messaging_pb.SeaweedMessaging/FindBrokerLeader"
2023-12-12 04:05:54 +08:00
SeaweedMessaging_PublisherToPubBalancer_FullMethodName = "/messaging_pb.SeaweedMessaging/PublisherToPubBalancer"
SeaweedMessaging_BalanceTopics_FullMethodName = "/messaging_pb.SeaweedMessaging/BalanceTopics"
2023-10-13 12:38:34 +08:00
SeaweedMessaging_ListTopics_FullMethodName = "/messaging_pb.SeaweedMessaging/ListTopics"
2023-12-12 04:05:54 +08:00
SeaweedMessaging_ConfigureTopic_FullMethodName = "/messaging_pb.SeaweedMessaging/ConfigureTopic"
SeaweedMessaging_LookupTopicBrokers_FullMethodName = "/messaging_pb.SeaweedMessaging/LookupTopicBrokers"
2023-10-13 12:38:34 +08:00
SeaweedMessaging_AssignTopicPartitions_FullMethodName = "/messaging_pb.SeaweedMessaging/AssignTopicPartitions"
2023-12-12 04:05:54 +08:00
SeaweedMessaging_ClosePublishers_FullMethodName = "/messaging_pb.SeaweedMessaging/ClosePublishers"
SeaweedMessaging_CloseSubscribers_FullMethodName = "/messaging_pb.SeaweedMessaging/CloseSubscribers"
SeaweedMessaging_SubscriberToSubCoordinator_FullMethodName = "/messaging_pb.SeaweedMessaging/SubscriberToSubCoordinator"
2024-01-06 07:14:25 +08:00
SeaweedMessaging_PublishMessage_FullMethodName = "/messaging_pb.SeaweedMessaging/PublishMessage"
SeaweedMessaging_SubscribeMessage_FullMethodName = "/messaging_pb.SeaweedMessaging/SubscribeMessage"
2024-03-11 05:34:28 +08:00
SeaweedMessaging_PublishFollowMe_FullMethodName = "/messaging_pb.SeaweedMessaging/PublishFollowMe"
2024-05-18 09:17:23 +08:00
SeaweedMessaging_SubscribeFollowMe_FullMethodName = "/messaging_pb.SeaweedMessaging/SubscribeFollowMe"
2023-10-13 12:38:34 +08:00
)
2021-12-05 16:42:25 +08:00
// SeaweedMessagingClient is the client API for SeaweedMessaging service.
//
// 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 SeaweedMessagingClient interface {
2022-08-01 04:23:44 +08:00
// control plane
2022-07-11 03:11:37 +08:00
FindBrokerLeader ( ctx context . Context , in * FindBrokerLeaderRequest , opts ... grpc . CallOption ) ( * FindBrokerLeaderResponse , error )
2023-09-15 14:49:05 +08:00
// control plane for balancer
2024-10-25 12:35:11 +08:00
PublisherToPubBalancer ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ PublisherToPubBalancerRequest , PublisherToPubBalancerResponse ] , error )
2023-12-12 04:05:54 +08:00
BalanceTopics ( ctx context . Context , in * BalanceTopicsRequest , opts ... grpc . CallOption ) ( * BalanceTopicsResponse , error )
2023-08-21 13:53:05 +08:00
// control plane for topic partitions
2023-09-25 12:19:51 +08:00
ListTopics ( ctx context . Context , in * ListTopicsRequest , opts ... grpc . CallOption ) ( * ListTopicsResponse , error )
2023-12-12 04:05:54 +08:00
ConfigureTopic ( ctx context . Context , in * ConfigureTopicRequest , opts ... grpc . CallOption ) ( * ConfigureTopicResponse , error )
LookupTopicBrokers ( ctx context . Context , in * LookupTopicBrokersRequest , opts ... grpc . CallOption ) ( * LookupTopicBrokersResponse , error )
// invoked by the balancer, running on each broker
2023-08-21 13:53:05 +08:00
AssignTopicPartitions ( ctx context . Context , in * AssignTopicPartitionsRequest , opts ... grpc . CallOption ) ( * AssignTopicPartitionsResponse , error )
2023-12-12 04:05:54 +08:00
ClosePublishers ( ctx context . Context , in * ClosePublishersRequest , opts ... grpc . CallOption ) ( * ClosePublishersResponse , error )
CloseSubscribers ( ctx context . Context , in * CloseSubscribersRequest , opts ... grpc . CallOption ) ( * CloseSubscribersResponse , error )
// subscriber connects to broker balancer, which coordinates with the subscribers
2024-10-25 12:35:11 +08:00
SubscriberToSubCoordinator ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ SubscriberToSubCoordinatorRequest , SubscriberToSubCoordinatorResponse ] , error )
2023-12-12 04:05:54 +08:00
// data plane for each topic partition
2024-10-25 12:35:11 +08:00
PublishMessage ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ PublishMessageRequest , PublishMessageResponse ] , error )
SubscribeMessage ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ SubscribeMessageRequest , SubscribeMessageResponse ] , error )
2024-03-11 05:34:28 +08:00
// The lead broker asks a follower broker to follow itself
2024-10-25 12:35:11 +08:00
PublishFollowMe ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ PublishFollowMeRequest , PublishFollowMeResponse ] , error )
SubscribeFollowMe ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . ClientStreamingClient [ SubscribeFollowMeRequest , SubscribeFollowMeResponse ] , error )
2021-12-05 16:42:25 +08:00
}
type seaweedMessagingClient struct {
cc grpc . ClientConnInterface
}
func NewSeaweedMessagingClient ( cc grpc . ClientConnInterface ) SeaweedMessagingClient {
return & seaweedMessagingClient { cc }
}
2022-07-11 03:11:37 +08:00
func ( c * seaweedMessagingClient ) FindBrokerLeader ( ctx context . Context , in * FindBrokerLeaderRequest , opts ... grpc . CallOption ) ( * FindBrokerLeaderResponse , error ) {
2024-10-25 12:35:11 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2022-07-11 03:11:37 +08:00
out := new ( FindBrokerLeaderResponse )
2024-10-25 12:35:11 +08:00
err := c . cc . Invoke ( ctx , SeaweedMessaging_FindBrokerLeader_FullMethodName , in , out , cOpts ... )
2021-12-05 16:42:25 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-25 12:35:11 +08:00
func ( c * seaweedMessagingClient ) PublisherToPubBalancer ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ PublisherToPubBalancerRequest , PublisherToPubBalancerResponse ] , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
stream , err := c . cc . NewStream ( ctx , & SeaweedMessaging_ServiceDesc . Streams [ 0 ] , SeaweedMessaging_PublisherToPubBalancer_FullMethodName , cOpts ... )
2023-09-15 14:49:05 +08:00
if err != nil {
return nil , err
}
2024-10-25 12:35:11 +08:00
x := & grpc . GenericClientStream [ PublisherToPubBalancerRequest , PublisherToPubBalancerResponse ] { ClientStream : stream }
2023-09-15 14:49:05 +08:00
return x , nil
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_PublisherToPubBalancerClient = grpc . BidiStreamingClient [ PublisherToPubBalancerRequest , PublisherToPubBalancerResponse ]
2023-09-15 14:49:05 +08:00
2023-12-12 04:05:54 +08:00
func ( c * seaweedMessagingClient ) BalanceTopics ( ctx context . Context , in * BalanceTopicsRequest , opts ... grpc . CallOption ) ( * BalanceTopicsResponse , error ) {
2024-10-25 12:35:11 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-12-12 04:05:54 +08:00
out := new ( BalanceTopicsResponse )
2024-10-25 12:35:11 +08:00
err := c . cc . Invoke ( ctx , SeaweedMessaging_BalanceTopics_FullMethodName , in , out , cOpts ... )
2023-08-21 13:53:05 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2023-12-12 04:05:54 +08:00
func ( c * seaweedMessagingClient ) ListTopics ( ctx context . Context , in * ListTopicsRequest , opts ... grpc . CallOption ) ( * ListTopicsResponse , error ) {
2024-10-25 12:35:11 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-12-12 04:05:54 +08:00
out := new ( ListTopicsResponse )
2024-10-25 12:35:11 +08:00
err := c . cc . Invoke ( ctx , SeaweedMessaging_ListTopics_FullMethodName , in , out , cOpts ... )
2023-09-25 05:22:11 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2023-10-01 12:47:57 +08:00
func ( c * seaweedMessagingClient ) ConfigureTopic ( ctx context . Context , in * ConfigureTopicRequest , opts ... grpc . CallOption ) ( * ConfigureTopicResponse , error ) {
2024-10-25 12:35:11 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-10-01 12:47:57 +08:00
out := new ( ConfigureTopicResponse )
2024-10-25 12:35:11 +08:00
err := c . cc . Invoke ( ctx , SeaweedMessaging_ConfigureTopic_FullMethodName , in , out , cOpts ... )
2023-09-25 06:26:49 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2023-12-12 04:05:54 +08:00
func ( c * seaweedMessagingClient ) LookupTopicBrokers ( ctx context . Context , in * LookupTopicBrokersRequest , opts ... grpc . CallOption ) ( * LookupTopicBrokersResponse , error ) {
2024-10-25 12:35:11 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-12-12 04:05:54 +08:00
out := new ( LookupTopicBrokersResponse )
2024-10-25 12:35:11 +08:00
err := c . cc . Invoke ( ctx , SeaweedMessaging_LookupTopicBrokers_FullMethodName , in , out , cOpts ... )
2023-09-25 12:19:51 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2023-12-12 04:05:54 +08:00
func ( c * seaweedMessagingClient ) AssignTopicPartitions ( ctx context . Context , in * AssignTopicPartitionsRequest , opts ... grpc . CallOption ) ( * AssignTopicPartitionsResponse , error ) {
2024-10-25 12:35:11 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-12-12 04:05:54 +08:00
out := new ( AssignTopicPartitionsResponse )
2024-10-25 12:35:11 +08:00
err := c . cc . Invoke ( ctx , SeaweedMessaging_AssignTopicPartitions_FullMethodName , in , out , cOpts ... )
2023-08-21 13:53:05 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2023-12-12 04:05:54 +08:00
func ( c * seaweedMessagingClient ) ClosePublishers ( ctx context . Context , in * ClosePublishersRequest , opts ... grpc . CallOption ) ( * ClosePublishersResponse , error ) {
2024-10-25 12:35:11 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-12-12 04:05:54 +08:00
out := new ( ClosePublishersResponse )
2024-10-25 12:35:11 +08:00
err := c . cc . Invoke ( ctx , SeaweedMessaging_ClosePublishers_FullMethodName , in , out , cOpts ... )
2023-08-21 13:53:05 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2023-12-12 04:05:54 +08:00
func ( c * seaweedMessagingClient ) CloseSubscribers ( ctx context . Context , in * CloseSubscribersRequest , opts ... grpc . CallOption ) ( * CloseSubscribersResponse , error ) {
2024-10-25 12:35:11 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2023-12-12 04:05:54 +08:00
out := new ( CloseSubscribersResponse )
2024-10-25 12:35:11 +08:00
err := c . cc . Invoke ( ctx , SeaweedMessaging_CloseSubscribers_FullMethodName , in , out , cOpts ... )
2023-08-21 13:53:05 +08:00
if err != nil {
return nil , err
}
return out , nil
}
2024-10-25 12:35:11 +08:00
func ( c * seaweedMessagingClient ) SubscriberToSubCoordinator ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ SubscriberToSubCoordinatorRequest , SubscriberToSubCoordinatorResponse ] , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
stream , err := c . cc . NewStream ( ctx , & SeaweedMessaging_ServiceDesc . Streams [ 1 ] , SeaweedMessaging_SubscriberToSubCoordinator_FullMethodName , cOpts ... )
2023-12-12 04:05:54 +08:00
if err != nil {
return nil , err
}
2024-10-25 12:35:11 +08:00
x := & grpc . GenericClientStream [ SubscriberToSubCoordinatorRequest , SubscriberToSubCoordinatorResponse ] { ClientStream : stream }
2023-12-12 04:05:54 +08:00
return x , nil
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_SubscriberToSubCoordinatorClient = grpc . BidiStreamingClient [ SubscriberToSubCoordinatorRequest , SubscriberToSubCoordinatorResponse ]
2023-12-12 04:05:54 +08:00
2024-10-25 12:35:11 +08:00
func ( c * seaweedMessagingClient ) PublishMessage ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ PublishMessageRequest , PublishMessageResponse ] , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
stream , err := c . cc . NewStream ( ctx , & SeaweedMessaging_ServiceDesc . Streams [ 2 ] , SeaweedMessaging_PublishMessage_FullMethodName , cOpts ... )
2022-08-01 04:23:44 +08:00
if err != nil {
return nil , err
}
2024-10-25 12:35:11 +08:00
x := & grpc . GenericClientStream [ PublishMessageRequest , PublishMessageResponse ] { ClientStream : stream }
2022-08-01 04:23:44 +08:00
return x , nil
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_PublishMessageClient = grpc . BidiStreamingClient [ PublishMessageRequest , PublishMessageResponse ]
2022-08-01 04:23:44 +08:00
2024-10-25 12:35:11 +08:00
func ( c * seaweedMessagingClient ) SubscribeMessage ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ SubscribeMessageRequest , SubscribeMessageResponse ] , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
stream , err := c . cc . NewStream ( ctx , & SeaweedMessaging_ServiceDesc . Streams [ 3 ] , SeaweedMessaging_SubscribeMessage_FullMethodName , cOpts ... )
2023-08-27 04:39:21 +08:00
if err != nil {
return nil , err
}
2024-10-25 12:35:11 +08:00
x := & grpc . GenericClientStream [ SubscribeMessageRequest , SubscribeMessageResponse ] { ClientStream : stream }
2023-08-27 04:39:21 +08:00
return x , nil
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_SubscribeMessageClient = grpc . BidiStreamingClient [ SubscribeMessageRequest , SubscribeMessageResponse ]
2023-08-27 04:39:21 +08:00
2024-10-25 12:35:11 +08:00
func ( c * seaweedMessagingClient ) PublishFollowMe ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . BidiStreamingClient [ PublishFollowMeRequest , PublishFollowMeResponse ] , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
stream , err := c . cc . NewStream ( ctx , & SeaweedMessaging_ServiceDesc . Streams [ 4 ] , SeaweedMessaging_PublishFollowMe_FullMethodName , cOpts ... )
2024-03-11 05:34:28 +08:00
if err != nil {
return nil , err
}
2024-10-25 12:35:11 +08:00
x := & grpc . GenericClientStream [ PublishFollowMeRequest , PublishFollowMeResponse ] { ClientStream : stream }
2024-03-21 03:25:40 +08:00
return x , nil
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_PublishFollowMeClient = grpc . BidiStreamingClient [ PublishFollowMeRequest , PublishFollowMeResponse ]
2024-03-11 05:34:28 +08:00
2024-10-25 12:35:11 +08:00
func ( c * seaweedMessagingClient ) SubscribeFollowMe ( ctx context . Context , opts ... grpc . CallOption ) ( grpc . ClientStreamingClient [ SubscribeFollowMeRequest , SubscribeFollowMeResponse ] , error ) {
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
stream , err := c . cc . NewStream ( ctx , & SeaweedMessaging_ServiceDesc . Streams [ 5 ] , SeaweedMessaging_SubscribeFollowMe_FullMethodName , cOpts ... )
2024-05-18 09:17:23 +08:00
if err != nil {
return nil , err
}
2024-10-25 12:35:11 +08:00
x := & grpc . GenericClientStream [ SubscribeFollowMeRequest , SubscribeFollowMeResponse ] { ClientStream : stream }
2024-05-18 09:17:23 +08:00
return x , nil
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_SubscribeFollowMeClient = grpc . ClientStreamingClient [ SubscribeFollowMeRequest , SubscribeFollowMeResponse ]
2024-05-18 09:17:23 +08:00
2021-12-05 16:42:25 +08:00
// SeaweedMessagingServer is the server API for SeaweedMessaging service.
// All implementations must embed UnimplementedSeaweedMessagingServer
2024-10-25 12:35:11 +08:00
// for forward compatibility.
2021-12-05 16:42:25 +08:00
type SeaweedMessagingServer interface {
2022-08-01 04:23:44 +08:00
// control plane
2022-07-11 03:11:37 +08:00
FindBrokerLeader ( context . Context , * FindBrokerLeaderRequest ) ( * FindBrokerLeaderResponse , error )
2023-09-15 14:49:05 +08:00
// control plane for balancer
2024-10-25 12:35:11 +08:00
PublisherToPubBalancer ( grpc . BidiStreamingServer [ PublisherToPubBalancerRequest , PublisherToPubBalancerResponse ] ) error
2023-12-12 04:05:54 +08:00
BalanceTopics ( context . Context , * BalanceTopicsRequest ) ( * BalanceTopicsResponse , error )
2023-08-21 13:53:05 +08:00
// control plane for topic partitions
2023-09-25 12:19:51 +08:00
ListTopics ( context . Context , * ListTopicsRequest ) ( * ListTopicsResponse , error )
2023-12-12 04:05:54 +08:00
ConfigureTopic ( context . Context , * ConfigureTopicRequest ) ( * ConfigureTopicResponse , error )
LookupTopicBrokers ( context . Context , * LookupTopicBrokersRequest ) ( * LookupTopicBrokersResponse , error )
// invoked by the balancer, running on each broker
2023-08-21 13:53:05 +08:00
AssignTopicPartitions ( context . Context , * AssignTopicPartitionsRequest ) ( * AssignTopicPartitionsResponse , error )
2023-12-12 04:05:54 +08:00
ClosePublishers ( context . Context , * ClosePublishersRequest ) ( * ClosePublishersResponse , error )
CloseSubscribers ( context . Context , * CloseSubscribersRequest ) ( * CloseSubscribersResponse , error )
// subscriber connects to broker balancer, which coordinates with the subscribers
2024-10-25 12:35:11 +08:00
SubscriberToSubCoordinator ( grpc . BidiStreamingServer [ SubscriberToSubCoordinatorRequest , SubscriberToSubCoordinatorResponse ] ) error
2023-12-12 04:05:54 +08:00
// data plane for each topic partition
2024-10-25 12:35:11 +08:00
PublishMessage ( grpc . BidiStreamingServer [ PublishMessageRequest , PublishMessageResponse ] ) error
SubscribeMessage ( grpc . BidiStreamingServer [ SubscribeMessageRequest , SubscribeMessageResponse ] ) error
2024-03-11 05:34:28 +08:00
// The lead broker asks a follower broker to follow itself
2024-10-25 12:35:11 +08:00
PublishFollowMe ( grpc . BidiStreamingServer [ PublishFollowMeRequest , PublishFollowMeResponse ] ) error
SubscribeFollowMe ( grpc . ClientStreamingServer [ SubscribeFollowMeRequest , SubscribeFollowMeResponse ] ) error
2021-12-05 16:42:25 +08:00
mustEmbedUnimplementedSeaweedMessagingServer ( )
}
2024-10-25 12:35:11 +08:00
// UnimplementedSeaweedMessagingServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedSeaweedMessagingServer struct { }
2021-12-05 16:42:25 +08:00
2022-07-11 03:11:37 +08:00
func ( UnimplementedSeaweedMessagingServer ) FindBrokerLeader ( context . Context , * FindBrokerLeaderRequest ) ( * FindBrokerLeaderResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method FindBrokerLeader not implemented" )
2021-12-05 16:42:25 +08:00
}
2024-10-25 12:35:11 +08:00
func ( UnimplementedSeaweedMessagingServer ) PublisherToPubBalancer ( grpc . BidiStreamingServer [ PublisherToPubBalancerRequest , PublisherToPubBalancerResponse ] ) error {
2023-12-12 04:05:54 +08:00
return status . Errorf ( codes . Unimplemented , "method PublisherToPubBalancer not implemented" )
2023-09-15 14:49:05 +08:00
}
2023-12-12 04:05:54 +08:00
func ( UnimplementedSeaweedMessagingServer ) BalanceTopics ( context . Context , * BalanceTopicsRequest ) ( * BalanceTopicsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method BalanceTopics not implemented" )
2023-10-01 12:47:57 +08:00
}
2023-12-12 04:05:54 +08:00
func ( UnimplementedSeaweedMessagingServer ) ListTopics ( context . Context , * ListTopicsRequest ) ( * ListTopicsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ListTopics not implemented" )
2023-08-21 13:53:05 +08:00
}
2023-09-27 06:17:33 +08:00
func ( UnimplementedSeaweedMessagingServer ) ConfigureTopic ( context . Context , * ConfigureTopicRequest ) ( * ConfigureTopicResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ConfigureTopic not implemented" )
2023-09-25 05:22:11 +08:00
}
2023-12-12 04:05:54 +08:00
func ( UnimplementedSeaweedMessagingServer ) LookupTopicBrokers ( context . Context , * LookupTopicBrokersRequest ) ( * LookupTopicBrokersResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method LookupTopicBrokers not implemented" )
2023-08-21 13:53:05 +08:00
}
func ( UnimplementedSeaweedMessagingServer ) AssignTopicPartitions ( context . Context , * AssignTopicPartitionsRequest ) ( * AssignTopicPartitionsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method AssignTopicPartitions not implemented" )
}
2023-12-12 04:05:54 +08:00
func ( UnimplementedSeaweedMessagingServer ) ClosePublishers ( context . Context , * ClosePublishersRequest ) ( * ClosePublishersResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ClosePublishers not implemented" )
}
func ( UnimplementedSeaweedMessagingServer ) CloseSubscribers ( context . Context , * CloseSubscribersRequest ) ( * CloseSubscribersResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method CloseSubscribers not implemented" )
}
2024-10-25 12:35:11 +08:00
func ( UnimplementedSeaweedMessagingServer ) SubscriberToSubCoordinator ( grpc . BidiStreamingServer [ SubscriberToSubCoordinatorRequest , SubscriberToSubCoordinatorResponse ] ) error {
2023-12-12 04:05:54 +08:00
return status . Errorf ( codes . Unimplemented , "method SubscriberToSubCoordinator not implemented" )
2023-08-21 13:53:05 +08:00
}
2024-10-25 12:35:11 +08:00
func ( UnimplementedSeaweedMessagingServer ) PublishMessage ( grpc . BidiStreamingServer [ PublishMessageRequest , PublishMessageResponse ] ) error {
2024-01-06 07:14:25 +08:00
return status . Errorf ( codes . Unimplemented , "method PublishMessage not implemented" )
2022-08-01 04:23:44 +08:00
}
2024-10-25 12:35:11 +08:00
func ( UnimplementedSeaweedMessagingServer ) SubscribeMessage ( grpc . BidiStreamingServer [ SubscribeMessageRequest , SubscribeMessageResponse ] ) error {
2024-01-06 07:14:25 +08:00
return status . Errorf ( codes . Unimplemented , "method SubscribeMessage not implemented" )
2023-08-27 04:39:21 +08:00
}
2024-10-25 12:35:11 +08:00
func ( UnimplementedSeaweedMessagingServer ) PublishFollowMe ( grpc . BidiStreamingServer [ PublishFollowMeRequest , PublishFollowMeResponse ] ) error {
2024-03-21 03:25:40 +08:00
return status . Errorf ( codes . Unimplemented , "method PublishFollowMe not implemented" )
2024-03-11 05:34:28 +08:00
}
2024-10-25 12:35:11 +08:00
func ( UnimplementedSeaweedMessagingServer ) SubscribeFollowMe ( grpc . ClientStreamingServer [ SubscribeFollowMeRequest , SubscribeFollowMeResponse ] ) error {
2024-05-18 09:17:23 +08:00
return status . Errorf ( codes . Unimplemented , "method SubscribeFollowMe not implemented" )
}
2021-12-05 16:42:25 +08:00
func ( UnimplementedSeaweedMessagingServer ) mustEmbedUnimplementedSeaweedMessagingServer ( ) { }
2024-10-25 12:35:11 +08:00
func ( UnimplementedSeaweedMessagingServer ) testEmbeddedByValue ( ) { }
2021-12-05 16:42:25 +08:00
// UnsafeSeaweedMessagingServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SeaweedMessagingServer will
// result in compilation errors.
type UnsafeSeaweedMessagingServer interface {
mustEmbedUnimplementedSeaweedMessagingServer ( )
}
func RegisterSeaweedMessagingServer ( s grpc . ServiceRegistrar , srv SeaweedMessagingServer ) {
2024-10-25 12:35:11 +08:00
// If the following call pancis, it indicates UnimplementedSeaweedMessagingServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t , ok := srv . ( interface { testEmbeddedByValue ( ) } ) ; ok {
t . testEmbeddedByValue ( )
}
2021-12-05 16:42:25 +08:00
s . RegisterService ( & SeaweedMessaging_ServiceDesc , srv )
}
2022-07-11 03:11:37 +08:00
func _SeaweedMessaging_FindBrokerLeader_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( FindBrokerLeaderRequest )
2021-12-05 16:42:25 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2022-07-11 03:11:37 +08:00
return srv . ( SeaweedMessagingServer ) . FindBrokerLeader ( ctx , in )
2021-12-05 16:42:25 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-10-13 12:38:34 +08:00
FullMethod : SeaweedMessaging_FindBrokerLeader_FullMethodName ,
2021-12-05 16:42:25 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2022-07-11 03:11:37 +08:00
return srv . ( SeaweedMessagingServer ) . FindBrokerLeader ( ctx , req . ( * FindBrokerLeaderRequest ) )
2021-12-05 16:42:25 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-12-12 04:05:54 +08:00
func _SeaweedMessaging_PublisherToPubBalancer_Handler ( srv interface { } , stream grpc . ServerStream ) error {
2024-10-25 12:35:11 +08:00
return srv . ( SeaweedMessagingServer ) . PublisherToPubBalancer ( & grpc . GenericServerStream [ PublisherToPubBalancerRequest , PublisherToPubBalancerResponse ] { ServerStream : stream } )
2023-09-15 14:49:05 +08:00
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_PublisherToPubBalancerServer = grpc . BidiStreamingServer [ PublisherToPubBalancerRequest , PublisherToPubBalancerResponse ]
2023-09-15 14:49:05 +08:00
2023-12-12 04:05:54 +08:00
func _SeaweedMessaging_BalanceTopics_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( BalanceTopicsRequest )
2023-08-21 13:53:05 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . BalanceTopics ( ctx , in )
2023-08-21 13:53:05 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-12-12 04:05:54 +08:00
FullMethod : SeaweedMessaging_BalanceTopics_FullMethodName ,
2023-08-21 13:53:05 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . BalanceTopics ( ctx , req . ( * BalanceTopicsRequest ) )
2023-08-21 13:53:05 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-12-12 04:05:54 +08:00
func _SeaweedMessaging_ListTopics_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ListTopicsRequest )
2023-09-25 05:22:11 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . ListTopics ( ctx , in )
2023-09-25 05:22:11 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-12-12 04:05:54 +08:00
FullMethod : SeaweedMessaging_ListTopics_FullMethodName ,
2023-09-25 05:22:11 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . ListTopics ( ctx , req . ( * ListTopicsRequest ) )
2023-09-25 05:22:11 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-10-01 12:47:57 +08:00
func _SeaweedMessaging_ConfigureTopic_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ConfigureTopicRequest )
2023-09-25 06:26:49 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-10-01 12:47:57 +08:00
return srv . ( SeaweedMessagingServer ) . ConfigureTopic ( ctx , in )
2023-09-25 06:26:49 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-10-13 12:38:34 +08:00
FullMethod : SeaweedMessaging_ConfigureTopic_FullMethodName ,
2023-09-25 06:26:49 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-10-01 12:47:57 +08:00
return srv . ( SeaweedMessagingServer ) . ConfigureTopic ( ctx , req . ( * ConfigureTopicRequest ) )
2023-09-25 06:26:49 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-12-12 04:05:54 +08:00
func _SeaweedMessaging_LookupTopicBrokers_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LookupTopicBrokersRequest )
2023-09-25 12:19:51 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . LookupTopicBrokers ( ctx , in )
2023-09-25 12:19:51 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-12-12 04:05:54 +08:00
FullMethod : SeaweedMessaging_LookupTopicBrokers_FullMethodName ,
2023-09-25 12:19:51 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . LookupTopicBrokers ( ctx , req . ( * LookupTopicBrokersRequest ) )
2023-09-25 12:19:51 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-12-12 04:05:54 +08:00
func _SeaweedMessaging_AssignTopicPartitions_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( AssignTopicPartitionsRequest )
2023-08-21 13:53:05 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . AssignTopicPartitions ( ctx , in )
2023-08-21 13:53:05 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-12-12 04:05:54 +08:00
FullMethod : SeaweedMessaging_AssignTopicPartitions_FullMethodName ,
2023-08-21 13:53:05 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . AssignTopicPartitions ( ctx , req . ( * AssignTopicPartitionsRequest ) )
2023-08-21 13:53:05 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-12-12 04:05:54 +08:00
func _SeaweedMessaging_ClosePublishers_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ClosePublishersRequest )
2023-08-21 13:53:05 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . ClosePublishers ( ctx , in )
2023-08-21 13:53:05 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-12-12 04:05:54 +08:00
FullMethod : SeaweedMessaging_ClosePublishers_FullMethodName ,
2023-08-21 13:53:05 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . ClosePublishers ( ctx , req . ( * ClosePublishersRequest ) )
2023-08-21 13:53:05 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-12-12 04:05:54 +08:00
func _SeaweedMessaging_CloseSubscribers_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( CloseSubscribersRequest )
2023-08-21 13:53:05 +08:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . CloseSubscribers ( ctx , in )
2023-08-21 13:53:05 +08:00
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2023-12-12 04:05:54 +08:00
FullMethod : SeaweedMessaging_CloseSubscribers_FullMethodName ,
2023-08-21 13:53:05 +08:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2023-12-12 04:05:54 +08:00
return srv . ( SeaweedMessagingServer ) . CloseSubscribers ( ctx , req . ( * CloseSubscribersRequest ) )
2023-08-21 13:53:05 +08:00
}
return interceptor ( ctx , in , info , handler )
}
2023-12-12 04:05:54 +08:00
func _SeaweedMessaging_SubscriberToSubCoordinator_Handler ( srv interface { } , stream grpc . ServerStream ) error {
2024-10-25 12:35:11 +08:00
return srv . ( SeaweedMessagingServer ) . SubscriberToSubCoordinator ( & grpc . GenericServerStream [ SubscriberToSubCoordinatorRequest , SubscriberToSubCoordinatorResponse ] { ServerStream : stream } )
2023-12-12 04:05:54 +08:00
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_SubscriberToSubCoordinatorServer = grpc . BidiStreamingServer [ SubscriberToSubCoordinatorRequest , SubscriberToSubCoordinatorResponse ]
2023-12-12 04:05:54 +08:00
2024-01-06 07:14:25 +08:00
func _SeaweedMessaging_PublishMessage_Handler ( srv interface { } , stream grpc . ServerStream ) error {
2024-10-25 12:35:11 +08:00
return srv . ( SeaweedMessagingServer ) . PublishMessage ( & grpc . GenericServerStream [ PublishMessageRequest , PublishMessageResponse ] { ServerStream : stream } )
2022-08-01 04:23:44 +08:00
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_PublishMessageServer = grpc . BidiStreamingServer [ PublishMessageRequest , PublishMessageResponse ]
2022-08-01 04:23:44 +08:00
2024-01-06 07:14:25 +08:00
func _SeaweedMessaging_SubscribeMessage_Handler ( srv interface { } , stream grpc . ServerStream ) error {
2024-10-25 12:35:11 +08:00
return srv . ( SeaweedMessagingServer ) . SubscribeMessage ( & grpc . GenericServerStream [ SubscribeMessageRequest , SubscribeMessageResponse ] { ServerStream : stream } )
2023-08-27 04:39:21 +08:00
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_SubscribeMessageServer = grpc . BidiStreamingServer [ SubscribeMessageRequest , SubscribeMessageResponse ]
2024-05-18 09:17:23 +08:00
2024-03-21 03:25:40 +08:00
func _SeaweedMessaging_PublishFollowMe_Handler ( srv interface { } , stream grpc . ServerStream ) error {
2024-10-25 12:35:11 +08:00
return srv . ( SeaweedMessagingServer ) . PublishFollowMe ( & grpc . GenericServerStream [ PublishFollowMeRequest , PublishFollowMeResponse ] { ServerStream : stream } )
2024-03-21 03:25:40 +08:00
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_PublishFollowMeServer = grpc . BidiStreamingServer [ PublishFollowMeRequest , PublishFollowMeResponse ]
2024-03-11 05:34:28 +08:00
2024-05-18 09:17:23 +08:00
func _SeaweedMessaging_SubscribeFollowMe_Handler ( srv interface { } , stream grpc . ServerStream ) error {
2024-10-25 12:35:11 +08:00
return srv . ( SeaweedMessagingServer ) . SubscribeFollowMe ( & grpc . GenericServerStream [ SubscribeFollowMeRequest , SubscribeFollowMeResponse ] { ServerStream : stream } )
2024-05-18 09:17:23 +08:00
}
2024-10-25 12:35:11 +08:00
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type SeaweedMessaging_SubscribeFollowMeServer = grpc . ClientStreamingServer [ SubscribeFollowMeRequest , SubscribeFollowMeResponse ]
2024-05-18 09:17:23 +08:00
2021-12-05 16:42:25 +08:00
// SeaweedMessaging_ServiceDesc is the grpc.ServiceDesc for SeaweedMessaging service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SeaweedMessaging_ServiceDesc = grpc . ServiceDesc {
2022-07-03 15:29:25 +08:00
ServiceName : "messaging_pb.SeaweedMessaging" ,
2021-12-05 16:42:25 +08:00
HandlerType : ( * SeaweedMessagingServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
2022-07-11 03:11:37 +08:00
MethodName : "FindBrokerLeader" ,
Handler : _SeaweedMessaging_FindBrokerLeader_Handler ,
2021-12-05 16:42:25 +08:00
} ,
2022-07-11 15:20:27 +08:00
{
2023-12-12 04:05:54 +08:00
MethodName : "BalanceTopics" ,
Handler : _SeaweedMessaging_BalanceTopics_Handler ,
2023-10-01 12:47:57 +08:00
} ,
2023-08-21 13:53:05 +08:00
{
2023-12-12 04:05:54 +08:00
MethodName : "ListTopics" ,
Handler : _SeaweedMessaging_ListTopics_Handler ,
2023-08-21 13:53:05 +08:00
} ,
2023-09-25 05:22:11 +08:00
{
2023-09-27 06:17:33 +08:00
MethodName : "ConfigureTopic" ,
Handler : _SeaweedMessaging_ConfigureTopic_Handler ,
2023-09-25 05:22:11 +08:00
} ,
2023-09-25 12:19:51 +08:00
{
2023-12-12 04:05:54 +08:00
MethodName : "LookupTopicBrokers" ,
Handler : _SeaweedMessaging_LookupTopicBrokers_Handler ,
2023-08-21 13:53:05 +08:00
} ,
{
MethodName : "AssignTopicPartitions" ,
Handler : _SeaweedMessaging_AssignTopicPartitions_Handler ,
} ,
{
2023-12-12 04:05:54 +08:00
MethodName : "ClosePublishers" ,
Handler : _SeaweedMessaging_ClosePublishers_Handler ,
} ,
{
MethodName : "CloseSubscribers" ,
Handler : _SeaweedMessaging_CloseSubscribers_Handler ,
2023-08-21 13:53:05 +08:00
} ,
2021-12-05 16:42:25 +08:00
} ,
2022-08-01 04:23:44 +08:00
Streams : [ ] grpc . StreamDesc {
2023-09-15 14:49:05 +08:00
{
2023-12-12 04:05:54 +08:00
StreamName : "PublisherToPubBalancer" ,
Handler : _SeaweedMessaging_PublisherToPubBalancer_Handler ,
ServerStreams : true ,
ClientStreams : true ,
} ,
{
StreamName : "SubscriberToSubCoordinator" ,
Handler : _SeaweedMessaging_SubscriberToSubCoordinator_Handler ,
2023-09-15 14:49:05 +08:00
ServerStreams : true ,
ClientStreams : true ,
} ,
2022-08-01 04:23:44 +08:00
{
2024-01-06 07:14:25 +08:00
StreamName : "PublishMessage" ,
Handler : _SeaweedMessaging_PublishMessage_Handler ,
2022-08-01 04:23:44 +08:00
ServerStreams : true ,
ClientStreams : true ,
} ,
2023-08-27 04:39:21 +08:00
{
2024-01-06 07:14:25 +08:00
StreamName : "SubscribeMessage" ,
Handler : _SeaweedMessaging_SubscribeMessage_Handler ,
2023-08-27 04:39:21 +08:00
ServerStreams : true ,
2024-05-18 09:17:23 +08:00
ClientStreams : true ,
2023-08-27 04:39:21 +08:00
} ,
2024-03-21 03:25:40 +08:00
{
StreamName : "PublishFollowMe" ,
Handler : _SeaweedMessaging_PublishFollowMe_Handler ,
ServerStreams : true ,
ClientStreams : true ,
} ,
2024-05-18 09:17:23 +08:00
{
StreamName : "SubscribeFollowMe" ,
Handler : _SeaweedMessaging_SubscribeFollowMe_Handler ,
ClientStreams : true ,
} ,
2022-08-01 04:23:44 +08:00
} ,
2022-07-02 13:43:25 +08:00
Metadata : "mq.proto" ,
2021-12-05 16:42:25 +08:00
}