2021-10-27 18:27:04 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
2023-03-25 22:16:14 +03:00
|
|
|
// versions:
|
|
|
|
// - protoc-gen-go-micro v3.10.2
|
|
|
|
// - protoc v3.21.12
|
2021-03-22 08:42:38 +03:00
|
|
|
// source: broker.proto
|
2021-10-27 18:27:04 +03:00
|
|
|
|
|
|
|
package servicepb
|
2021-03-22 08:42:38 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2021-10-27 18:27:04 +03:00
|
|
|
proto "go.unistack.org/micro-broker-service/v3/proto"
|
2023-03-25 22:16:14 +03:00
|
|
|
v3 "go.unistack.org/micro-server-http/v3"
|
2021-10-27 18:27:04 +03:00
|
|
|
client "go.unistack.org/micro/v3/client"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2021-10-27 18:47:36 +03:00
|
|
|
BrokerServiceName = "BrokerService"
|
2021-03-22 08:42:38 +03:00
|
|
|
)
|
2023-03-25 22:16:14 +03:00
|
|
|
var (
|
|
|
|
BrokerServiceServerEndpoints = []v3.EndpointMetadata{}
|
|
|
|
)
|
2021-03-22 08:42:38 +03:00
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
type BrokerServiceClient interface {
|
|
|
|
Publish(ctx context.Context, req *proto.PublishRequest, opts ...client.CallOption) (*proto.PublishResponse, error)
|
|
|
|
BatchPublish(ctx context.Context, req *proto.BatchPublishRequest, opts ...client.CallOption) (*proto.BatchPublishResponse, error)
|
|
|
|
Subscribe(ctx context.Context, req *proto.SubscribeRequest, opts ...client.CallOption) (BrokerService_SubscribeClient, error)
|
|
|
|
BatchSubscribe(ctx context.Context, req *proto.BatchSubscribeRequest, opts ...client.CallOption) (BrokerService_BatchSubscribeClient, error)
|
2021-03-22 08:42:38 +03:00
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
type BrokerService_SubscribeClient interface {
|
2021-03-22 08:42:38 +03:00
|
|
|
Context() context.Context
|
|
|
|
SendMsg(msg interface{}) error
|
|
|
|
RecvMsg(msg interface{}) error
|
|
|
|
Close() error
|
|
|
|
Recv() (*proto.Message, error)
|
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
type BrokerService_BatchSubscribeClient interface {
|
|
|
|
Context() context.Context
|
|
|
|
SendMsg(msg interface{}) error
|
|
|
|
RecvMsg(msg interface{}) error
|
|
|
|
Close() error
|
|
|
|
Recv() (*proto.Message, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type BrokerServiceServer interface {
|
|
|
|
Publish(ctx context.Context, req *proto.PublishRequest, rsp *proto.PublishResponse) error
|
|
|
|
BatchPublish(ctx context.Context, req *proto.BatchPublishRequest, rsp *proto.BatchPublishResponse) error
|
|
|
|
Subscribe(ctx context.Context, req *proto.SubscribeRequest, stream BrokerService_SubscribeStream) error
|
|
|
|
BatchSubscribe(ctx context.Context, req *proto.BatchSubscribeRequest, stream BrokerService_BatchSubscribeStream) error
|
|
|
|
}
|
|
|
|
|
|
|
|
type BrokerService_SubscribeStream interface {
|
|
|
|
Context() context.Context
|
|
|
|
SendMsg(msg interface{}) error
|
|
|
|
RecvMsg(msg interface{}) error
|
|
|
|
Close() error
|
|
|
|
Send(msg *proto.Message) error
|
2021-03-22 08:42:38 +03:00
|
|
|
}
|
|
|
|
|
2021-10-27 18:47:36 +03:00
|
|
|
type BrokerService_BatchSubscribeStream interface {
|
2021-03-22 08:42:38 +03:00
|
|
|
Context() context.Context
|
|
|
|
SendMsg(msg interface{}) error
|
|
|
|
RecvMsg(msg interface{}) error
|
|
|
|
Close() error
|
|
|
|
Send(msg *proto.Message) error
|
|
|
|
}
|