pb

package
v0.0.0-...-6346009 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChatService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chat.ChatService",
	HandlerType: (*ChatServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetChats",
			Handler:    _ChatService_GetChats_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pb/chat.proto",
}

ChatService_ServiceDesc is the grpc.ServiceDesc for ChatService 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 File_pb_chat_proto protoreflect.FileDescriptor

Functions

func RegisterChatServiceServer

func RegisterChatServiceServer(s grpc.ServiceRegistrar, srv ChatServiceServer)

Types

type ChatServiceClient

type ChatServiceClient interface {
	GetChats(ctx context.Context, in *GetChatReq, opts ...grpc.CallOption) (*GetChatRes, error)
}

ChatServiceClient is the client API for ChatService 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 ChatServiceServer

type ChatServiceServer interface {
	GetChats(context.Context, *GetChatReq) (*GetChatRes, error)
	// contains filtered or unexported methods
}

ChatServiceServer is the server API for ChatService service. All implementations must embed UnimplementedChatServiceServer for forward compatibility

type GetChatReq

type GetChatReq struct {
	SenderId   string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
	RecieverId string `protobuf:"bytes,2,opt,name=reciever_id,json=recieverId,proto3" json:"reciever_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetChatReq) Descriptor deprecated

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

Deprecated: Use GetChatReq.ProtoReflect.Descriptor instead.

func (*GetChatReq) GetRecieverId

func (x *GetChatReq) GetRecieverId() string

func (*GetChatReq) GetSenderId

func (x *GetChatReq) GetSenderId() string

func (*GetChatReq) ProtoMessage

func (*GetChatReq) ProtoMessage()

func (*GetChatReq) ProtoReflect

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

func (*GetChatReq) Reset

func (x *GetChatReq) Reset()

func (*GetChatReq) String

func (x *GetChatReq) String() string

type GetChatRes

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

func (*GetChatRes) Descriptor deprecated

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

Deprecated: Use GetChatRes.ProtoReflect.Descriptor instead.

func (*GetChatRes) GetChat

func (x *GetChatRes) GetChat() []*Message

func (*GetChatRes) ProtoMessage

func (*GetChatRes) ProtoMessage()

func (*GetChatRes) ProtoReflect

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

func (*GetChatRes) Reset

func (x *GetChatRes) Reset()

func (*GetChatRes) String

func (x *GetChatRes) String() string

type Message

type Message struct {
	MessageID   string `protobuf:"bytes,1,opt,name=MessageID,proto3" json:"MessageID,omitempty"`
	SenderId    string `protobuf:"bytes,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
	RecipientId string `protobuf:"bytes,3,opt,name=recipient_id,json=recipientId,proto3" json:"recipient_id,omitempty"`
	Content     string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	Timestamp   string `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Type        string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	Tag         string `protobuf:"bytes,7,opt,name=tag,proto3" json:"tag,omitempty"`
	Status      string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,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) GetMessageID

func (x *Message) GetMessageID() string

func (*Message) GetRecipientId

func (x *Message) GetRecipientId() string

func (*Message) GetSenderId

func (x *Message) GetSenderId() string

func (*Message) GetStatus

func (x *Message) GetStatus() string

func (*Message) GetTag

func (x *Message) GetTag() string

func (*Message) GetTimestamp

func (x *Message) GetTimestamp() string

func (*Message) GetType

func (x *Message) GetType() 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 UnimplementedChatServiceServer

type UnimplementedChatServiceServer struct {
}

UnimplementedChatServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedChatServiceServer) GetChats

type UnsafeChatServiceServer

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

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

Jump to

Keyboard shortcuts

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