servicepb

package
v3.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BrokerServiceName = "BrokerService"
)
View Source
var (
	BrokerServiceServerEndpoints = []v3.EndpointMetadata{}
)

Functions

func RegisterBrokerServiceServer added in v3.8.1

func RegisterBrokerServiceServer(s server.Server, sh BrokerServiceServer, opts ...server.HandlerOption) error

Types

type BrokerServiceClient added in v3.8.1

func NewBrokerServiceClient added in v3.8.1

func NewBrokerServiceClient(name string, c client.Client) BrokerServiceClient

type BrokerServiceServer added in v3.8.1

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_BatchSubscribeClient added in v3.8.1

type BrokerService_BatchSubscribeClient interface {
	Context() context.Context
	SendMsg(msg interface{}) error
	RecvMsg(msg interface{}) error
	Close() error
	Recv() (*proto.Message, error)
}

type BrokerService_BatchSubscribeStream added in v3.8.1

type BrokerService_BatchSubscribeStream interface {
	Context() context.Context
	SendMsg(msg interface{}) error
	RecvMsg(msg interface{}) error
	Close() error
	Send(msg *proto.Message) error
}

type BrokerService_SubscribeClient added in v3.8.1

type BrokerService_SubscribeClient interface {
	Context() context.Context
	SendMsg(msg interface{}) error
	RecvMsg(msg interface{}) error
	Close() error
	Recv() (*proto.Message, error)
}

type BrokerService_SubscribeStream added in v3.8.1

type BrokerService_SubscribeStream interface {
	Context() context.Context
	SendMsg(msg interface{}) error
	RecvMsg(msg interface{}) error
	Close() error
	Send(msg *proto.Message) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL