Documentation ¶
Index ¶
- Constants
- Variables
- func MessagingServiceRoutes(svc MessagingService, opts ...gors.Option) []gors.Route
- func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)
- type Message
- type MessagingClient
- type MessagingServer
- type MessagingService
- type UnimplementedMessagingServer
- type UnsafeMessagingServer
Constants ¶
const (
Messaging_UpdateMessage_FullMethodName = "/tests.additional_bindings.message.v1.Messaging/UpdateMessage"
)
Variables ¶
var File_example_api_tests_additional_bindings_message_proto protoreflect.FileDescriptor
var Messaging_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tests.additional_bindings.message.v1.Messaging", HandlerType: (*MessagingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateMessage", Handler: _Messaging_UpdateMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example/api/tests/additional_bindings/message.proto", }
Messaging_ServiceDesc is the grpc.ServiceDesc for Messaging service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func MessagingServiceRoutes ¶
func MessagingServiceRoutes(svc MessagingService, opts ...gors.Option) []gors.Route
func RegisterMessagingServer ¶
func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)
Types ¶
type Message ¶
type Message struct { MessageId string `protobuf:"bytes,1,opt,name=message_id,json=msg_id,proto3" json:"message_id,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetMessageId ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessagingClient ¶
type MessagingClient interface {
UpdateMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}
MessagingClient is the client API for Messaging 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 NewMessagingClient ¶
func NewMessagingClient(cc grpc.ClientConnInterface) MessagingClient
type MessagingServer ¶
type MessagingServer interface { UpdateMessage(context.Context, *Message) (*Message, error) // contains filtered or unexported methods }
MessagingServer is the server API for Messaging service. All implementations must embed UnimplementedMessagingServer for forward compatibility
type MessagingService ¶
MessagingService is the service API for Messaging service.
type UnimplementedMessagingServer ¶
type UnimplementedMessagingServer struct { }
UnimplementedMessagingServer must be embedded to have forward compatible implementations.
func (UnimplementedMessagingServer) UpdateMessage ¶
type UnsafeMessagingServer ¶
type UnsafeMessagingServer interface {
// contains filtered or unexported methods
}
UnsafeMessagingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessagingServer will result in compilation errors.