noannotations

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Messaging1_UpdateMessage_FullMethodName = "/tests.noannotations.message.v1.Messaging1/UpdateMessage"
)
View Source
const (
	Messaging2_UpdateMessage_FullMethodName = "/tests.noannotations.message.v1.Messaging2/UpdateMessage"
)

Variables

View Source
var File_example_api_tests_noannotations_message_proto protoreflect.FileDescriptor
View Source
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)

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetId

func (x *Message) GetId() int64

func (*Message) GetLabel

func (x *Message) GetLabel() string

func (*Message) GetMessageId

func (x *Message) GetMessageId() string

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 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

type Messaging1Service interface {
	UpdateMessage(context.Context, *Message) (*Message, error)
}

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

type Messaging2Service interface {
	UpdateMessage(context.Context, *Message) (*Message, error)
}

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.

Jump to

Keyboard shortcuts

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