jsonoptions

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 (
	Messaging_CreateMessage_FullMethodName = "/tests.jsonnames.message.v1.Messaging/CreateMessage"
	Messaging_UpdateMessage_FullMethodName = "/tests.jsonnames.message.v1.Messaging/UpdateMessage"
)

Variables

View Source
var File_example_api_tests_jsonoptions_message_proto protoreflect.FileDescriptor
View Source
var Messaging_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tests.jsonnames.message.v1.Messaging",
	HandlerType: (*MessagingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateMessage",
			Handler:    _Messaging_CreateMessage_Handler,
		},
		{
			MethodName: "UpdateMessage",
			Handler:    _Messaging_UpdateMessage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "example/api/tests/jsonoptions/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 {
	MessageId string `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	BodyText  string `protobuf:"bytes,2,opt,name=body_text,json=bodyText,proto3" json:"body_text,omitempty"`
	NotUsed   string `protobuf:"bytes,3,opt,name=not_used,json=notUsed,proto3" json:"not_used,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

func (*Message) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBodyText

func (x *Message) GetBodyText() string

func (*Message) GetMessageId

func (x *Message) GetMessageId() string

func (*Message) GetNotUsed

func (x *Message) GetNotUsed() 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 Message2

type Message2 struct {
	MessageId string `protobuf:"bytes,1,opt,name=message_id,proto3" json:"message_id,omitempty"`
	BodyText  string `protobuf:"bytes,2,opt,name=body_text,proto3" json:"body_text,omitempty"`
	NotUsed   string `protobuf:"bytes,3,opt,name=not_used,proto3" json:"not_used,omitempty"`
	// contains filtered or unexported fields
}

func (*Message2) Descriptor deprecated

func (*Message2) Descriptor() ([]byte, []int)

Deprecated: Use Message2.ProtoReflect.Descriptor instead.

func (*Message2) GetBodyText

func (x *Message2) GetBodyText() string

func (*Message2) GetMessageId

func (x *Message2) GetMessageId() string

func (*Message2) GetNotUsed

func (x *Message2) GetNotUsed() string

func (*Message2) ProtoMessage

func (*Message2) ProtoMessage()

func (*Message2) ProtoReflect

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

func (*Message2) Reset

func (x *Message2) Reset()

func (*Message2) String

func (x *Message2) String() string

type MessagingClient

type MessagingClient interface {
	CreateMessage(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
	UpdateMessage(ctx context.Context, in *Message2, opts ...grpc.CallOption) (*Message2, 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 {
	CreateMessage(context.Context, *Message) (*Message, error)
	UpdateMessage(context.Context, *Message2) (*Message2, error)
	// contains filtered or unexported methods
}

MessagingServer is the server API for Messaging service. All implementations must embed UnimplementedMessagingServer for forward compatibility

type MessagingService

type MessagingService interface {
	CreateMessage(context.Context, *Message) (*Message, error)
	UpdateMessage(context.Context, *Message2) (*Message2, error)
}

MessagingService is the service API for Messaging service.

type UnimplementedMessagingServer

type UnimplementedMessagingServer struct {
}

UnimplementedMessagingServer must be embedded to have forward compatible implementations.

func (UnimplementedMessagingServer) CreateMessage

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.

Jump to

Keyboard shortcuts

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