Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Eventbus_ServiceDesc = grpc.ServiceDesc{ ServiceName: "internal.Eventbus", HandlerType: (*EventbusServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Send", Handler: _Eventbus_Send_Handler, }, { MethodName: "Request", Handler: _Eventbus_Request_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/eventbus.proto", }
Eventbus_ServiceDesc is the grpc.ServiceDesc for Eventbus service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_internal_eventbus_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventbusServer ¶
func RegisterEventbusServer(s grpc.ServiceRegistrar, srv EventbusServer)
Types ¶
type EventbusClient ¶
type EventbusClient interface { Send(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Void, error) Request(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) }
EventbusClient is the client API for Eventbus 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.
func NewEventbusClient ¶
func NewEventbusClient(cc grpc.ClientConnInterface) EventbusClient
type EventbusServer ¶
type EventbusServer interface { Send(context.Context, *Message) (*Void, error) Request(context.Context, *Message) (*Message, error) // contains filtered or unexported methods }
EventbusServer is the server API for Eventbus service. All implementations must embed UnimplementedEventbusServer for forward compatibility
type Message ¶
type Message struct { Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type UnimplementedEventbusServer ¶
type UnimplementedEventbusServer struct { }
UnimplementedEventbusServer must be embedded to have forward compatible implementations.
type UnsafeEventbusServer ¶
type UnsafeEventbusServer interface {
// contains filtered or unexported methods
}
UnsafeEventbusServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventbusServer will result in compilation errors.
type Void ¶
type Void struct {
// contains filtered or unexported fields
}
func (*Void) Descriptor
deprecated
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) ProtoReflect ¶
func (x *Void) ProtoReflect() protoreflect.Message