internal

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBody

func (x *Message) GetBody() []byte

func (*Message) GetHeader

func (x *Message) GetHeader() []byte

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type UnimplementedEventbusServer

type UnimplementedEventbusServer struct {
}

UnimplementedEventbusServer must be embedded to have forward compatible implementations.

func (UnimplementedEventbusServer) Request

func (UnimplementedEventbusServer) Send

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) Descriptor() ([]byte, []int)

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect

func (x *Void) ProtoReflect() protoreflect.Message

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

Jump to

Keyboard shortcuts

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