Documentation ¶
Index ¶
- Constants
- Variables
- func Messaging1ClientRoutes(cli Messaging1Client, opts ...gors.Option) []gors.Route
- func Messaging1ServerRoutes(srv Messaging1Server, opts ...gors.Option) []gors.Route
- func Messaging1ServiceRoutes(svc Messaging1Service, opts ...gors.Option) []gors.Route
- func Messaging2ClientRoutes(cli Messaging2Client, opts ...gors.Option) []gors.Route
- func Messaging2ServerRoutes(srv Messaging2Server, opts ...gors.Option) []gors.Route
- func Messaging2ServiceRoutes(svc Messaging2Service, opts ...gors.Option) []gors.Route
- func RegisterMessaging1Server(s grpc.ServiceRegistrar, srv Messaging1Server)
- func RegisterMessaging2Server(s grpc.ServiceRegistrar, srv Messaging2Server)
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetId() int64
- func (x *Message) GetLabel() string
- func (x *Message) GetMessageId() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Messaging1Client
- type Messaging1Server
- type Messaging1Service
- type Messaging2Client
- type Messaging2Server
- type Messaging2Service
- type UnimplementedMessaging1Server
- type UnimplementedMessaging2Server
- type UnsafeMessaging1Server
- type UnsafeMessaging2Server
Constants ¶
const (
Messaging1_UpdateMessage_FullMethodName = "/tests.noannotations.message.v1.Messaging1/UpdateMessage"
)
const (
Messaging2_UpdateMessage_FullMethodName = "/tests.noannotations.message.v1.Messaging2/UpdateMessage"
)
Variables ¶
var File_example_api_tests_noannotations_message_proto protoreflect.FileDescriptor
var Messaging1_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tests.noannotations.message.v1.Messaging1", HandlerType: (*Messaging1Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateMessage", Handler: _Messaging1_UpdateMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example/api/tests/noannotations/message.proto", }
Messaging1_ServiceDesc is the grpc.ServiceDesc for Messaging1 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Messaging2_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tests.noannotations.message.v1.Messaging2", HandlerType: (*Messaging2Server)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateMessage", Handler: _Messaging2_UpdateMessage_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "example/api/tests/noannotations/message.proto", }
Messaging2_ServiceDesc is the grpc.ServiceDesc for Messaging2 service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func Messaging1ClientRoutes ¶ added in v1.5.8
func Messaging1ClientRoutes(cli Messaging1Client, opts ...gors.Option) []gors.Route
func Messaging1ServerRoutes ¶ added in v1.5.8
func Messaging1ServerRoutes(srv Messaging1Server, opts ...gors.Option) []gors.Route
func Messaging1ServiceRoutes ¶
func Messaging1ServiceRoutes(svc Messaging1Service, opts ...gors.Option) []gors.Route
func Messaging2ClientRoutes ¶ added in v1.5.8
func Messaging2ClientRoutes(cli Messaging2Client, opts ...gors.Option) []gors.Route
func Messaging2ServerRoutes ¶ added in v1.5.8
func Messaging2ServerRoutes(srv Messaging2Server, opts ...gors.Option) []gors.Route
func Messaging2ServiceRoutes ¶
func Messaging2ServiceRoutes(svc Messaging2Service, opts ...gors.Option) []gors.Route
func RegisterMessaging1Server ¶
func RegisterMessaging1Server(s grpc.ServiceRegistrar, srv Messaging1Server)
func RegisterMessaging2Server ¶
func RegisterMessaging2Server(s grpc.ServiceRegistrar, srv Messaging2Server)
Types ¶
type Message ¶
type Message struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` MessageId string `protobuf:"bytes,3,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) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Messaging1Client ¶
type Messaging1Client interface {
UpdateMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}
Messaging1Client is the client API for Messaging1 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 NewMessaging1Client ¶
func NewMessaging1Client(cc grpc.ClientConnInterface) Messaging1Client
type Messaging1Server ¶
type Messaging1Server interface { UpdateMessage(context.Context, *Message) (*Message, error) // contains filtered or unexported methods }
Messaging1Server is the server API for Messaging1 service. All implementations must embed UnimplementedMessaging1Server for forward compatibility
type Messaging1Service ¶
Messaging1Service is the service API for Messaging1 service.
type Messaging2Client ¶
type Messaging2Client interface {
UpdateMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}
Messaging2Client is the client API for Messaging2 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 NewMessaging2Client ¶
func NewMessaging2Client(cc grpc.ClientConnInterface) Messaging2Client
type Messaging2Server ¶
type Messaging2Server interface { UpdateMessage(context.Context, *Message) (*Message, error) // contains filtered or unexported methods }
Messaging2Server is the server API for Messaging2 service. All implementations must embed UnimplementedMessaging2Server for forward compatibility
type Messaging2Service ¶
Messaging2Service is the service API for Messaging2 service.
type UnimplementedMessaging1Server ¶
type UnimplementedMessaging1Server struct { }
UnimplementedMessaging1Server must be embedded to have forward compatible implementations.
func (UnimplementedMessaging1Server) UpdateMessage ¶
type UnimplementedMessaging2Server ¶
type UnimplementedMessaging2Server struct { }
UnimplementedMessaging2Server must be embedded to have forward compatible implementations.
func (UnimplementedMessaging2Server) UpdateMessage ¶
type UnsafeMessaging1Server ¶
type UnsafeMessaging1Server interface {
// contains filtered or unexported methods
}
UnsafeMessaging1Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to Messaging1Server will result in compilation errors.
type UnsafeMessaging2Server ¶
type UnsafeMessaging2Server interface {
// contains filtered or unexported methods
}
UnsafeMessaging2Server may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to Messaging2Server will result in compilation errors.