Documentation ¶
Index ¶
- Constants
- Variables
- func MessagingClientRoutes(cli MessagingClient, opts ...gors.Option) []gors.Route
- func MessagingServerRoutes(srv MessagingServer, opts ...gors.Option) []gors.Route
- func MessagingServiceRoutes(svc MessagingService, opts ...gors.Option) []gors.Route
- func RegisterMessagingServer(s grpc.ServiceRegistrar, srv MessagingServer)
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetMessageId() string
- func (x *Message) GetSub() *Message_Sub
- func (x *Message) GetSubDesc() *Message_Sub
- func (x *Message) GetSubInput() *Message_Sub
- func (x *Message) GetSubOutput() *Message_Sub
- func (x *Message) GetSubs() []*Message_Sub
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Message_Sub
- type MessagingClient
- type MessagingServer
- type MessagingService
- type UnimplementedMessagingServer
- type UnsafeMessagingServer
Constants ¶
const (
Messaging_UpdateMessage_FullMethodName = "/tests.allofwrap.message.v1.Messaging/UpdateMessage"
)
Variables ¶
var File_example_api_tests_allofwrap_message_proto protoreflect.FileDescriptor
var Messaging_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tests.allofwrap.message.v1.Messaging", HandlerType: (*MessagingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateMessage", Handler: _Messaging_UpdateMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example/api/tests/allofwrap/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 MessagingClientRoutes ¶ added in v1.5.8
func MessagingClientRoutes(cli MessagingClient, opts ...gors.Option) []gors.Route
func MessagingServerRoutes ¶ added in v1.5.8
func MessagingServerRoutes(srv MessagingServer, opts ...gors.Option) []gors.Route
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 { Sub *Message_Sub `protobuf:"bytes,1,opt,name=sub,proto3" json:"sub,omitempty"` SubInput *Message_Sub `protobuf:"bytes,2,opt,name=sub_input,json=subInput,proto3" json:"sub_input,omitempty"` SubOutput *Message_Sub `protobuf:"bytes,3,opt,name=sub_output,json=subOutput,proto3" json:"sub_output,omitempty"` // this sub has a description SubDesc *Message_Sub `protobuf:"bytes,4,opt,name=sub_desc,json=subDesc,proto3" json:"sub_desc,omitempty"` // test repeated, should not allof wrapped Subs []*Message_Sub `protobuf:"bytes,5,rep,name=subs,proto3" json:"subs,omitempty"` MessageId string `protobuf:"bytes,6,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetMessageId ¶
func (*Message) GetSub ¶
func (x *Message) GetSub() *Message_Sub
func (*Message) GetSubDesc ¶
func (x *Message) GetSubDesc() *Message_Sub
func (*Message) GetSubInput ¶
func (x *Message) GetSubInput() *Message_Sub
func (*Message) GetSubOutput ¶
func (x *Message) GetSubOutput() *Message_Sub
func (*Message) GetSubs ¶
func (x *Message) GetSubs() []*Message_Sub
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Message_Sub ¶
type Message_Sub struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*Message_Sub) Descriptor
deprecated
func (*Message_Sub) Descriptor() ([]byte, []int)
Deprecated: Use Message_Sub.ProtoReflect.Descriptor instead.
func (*Message_Sub) GetContent ¶
func (x *Message_Sub) GetContent() string
func (*Message_Sub) ProtoMessage ¶
func (*Message_Sub) ProtoMessage()
func (*Message_Sub) ProtoReflect ¶
func (x *Message_Sub) ProtoReflect() protoreflect.Message
func (*Message_Sub) Reset ¶
func (x *Message_Sub) Reset()
func (*Message_Sub) String ¶
func (x *Message_Sub) String() string
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.