v1

package
v0.0.0-...-1c37eff Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_traces_api_message_message_proto protoreflect.FileDescriptor
View Source
var MessageService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.message.v1.MessageService",
	HandlerType: (*MessageServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUserMessage",
			Handler:    _MessageService_GetUserMessage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "traces/api/message/message.proto",
}

MessageService_ServiceDesc is the grpc.ServiceDesc for MessageService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMessageServiceHTTPServer

func RegisterMessageServiceHTTPServer(s *http.Server, srv MessageServiceHTTPServer)

func RegisterMessageServiceServer

func RegisterMessageServiceServer(s grpc.ServiceRegistrar, srv MessageServiceServer)

Types

type GetUserMessageReply

type GetUserMessageReply struct {
	Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserMessageReply) Descriptor deprecated

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

Deprecated: Use GetUserMessageReply.ProtoReflect.Descriptor instead.

func (*GetUserMessageReply) GetMessages

func (x *GetUserMessageReply) GetMessages() []*Message

func (*GetUserMessageReply) ProtoMessage

func (*GetUserMessageReply) ProtoMessage()

func (*GetUserMessageReply) ProtoReflect

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

func (*GetUserMessageReply) Reset

func (x *GetUserMessageReply) Reset()

func (*GetUserMessageReply) String

func (x *GetUserMessageReply) String() string

type GetUserMessageRequest

type GetUserMessageRequest struct {
	Id    int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserMessageRequest) Descriptor deprecated

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

Deprecated: Use GetUserMessageRequest.ProtoReflect.Descriptor instead.

func (*GetUserMessageRequest) GetCount

func (x *GetUserMessageRequest) GetCount() int64

func (*GetUserMessageRequest) GetId

func (x *GetUserMessageRequest) GetId() int64

func (*GetUserMessageRequest) ProtoMessage

func (*GetUserMessageRequest) ProtoMessage()

func (*GetUserMessageRequest) ProtoReflect

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

func (*GetUserMessageRequest) Reset

func (x *GetUserMessageRequest) Reset()

func (*GetUserMessageRequest) String

func (x *GetUserMessageRequest) String() string

type Message

type Message struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetContent

func (x *Message) GetContent() 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 MessageServiceClient

type MessageServiceClient interface {
	GetUserMessage(ctx context.Context, in *GetUserMessageRequest, opts ...grpc.CallOption) (*GetUserMessageReply, error)
}

MessageServiceClient is the client API for MessageService 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.

type MessageServiceHTTPClient

type MessageServiceHTTPClient interface {
	GetUserMessage(ctx context.Context, req *GetUserMessageRequest, opts ...http.CallOption) (rsp *GetUserMessageReply, err error)
}

func NewMessageServiceHTTPClient

func NewMessageServiceHTTPClient(client *http.Client) MessageServiceHTTPClient

type MessageServiceHTTPClientImpl

type MessageServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*MessageServiceHTTPClientImpl) GetUserMessage

type MessageServiceHTTPServer

type MessageServiceHTTPServer interface {
	GetUserMessage(context.Context, *GetUserMessageRequest) (*GetUserMessageReply, error)
}

type MessageServiceServer

type MessageServiceServer interface {
	GetUserMessage(context.Context, *GetUserMessageRequest) (*GetUserMessageReply, error)
	// contains filtered or unexported methods
}

MessageServiceServer is the server API for MessageService service. All implementations must embed UnimplementedMessageServiceServer for forward compatibility

type UnimplementedMessageServiceServer

type UnimplementedMessageServiceServer struct {
}

UnimplementedMessageServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMessageServiceServer) GetUserMessage

type UnsafeMessageServiceServer

type UnsafeMessageServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMessageServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MessageServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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