Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDialogServiceServer(s grpc.ServiceRegistrar, srv DialogServiceServer)
- type CreateDialogRequest
- func (*CreateDialogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDialogRequest) GetParticipantsIds() []string
- func (x *CreateDialogRequest) GetUserId() string
- func (*CreateDialogRequest) ProtoMessage()
- func (x *CreateDialogRequest) ProtoReflect() protoreflect.Message
- func (x *CreateDialogRequest) Reset()
- func (x *CreateDialogRequest) String() string
- type CreateDialogResponse
- func (*CreateDialogResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateDialogResponse) GetDialogId() string
- func (x *CreateDialogResponse) GetParticipantsIds() []string
- func (*CreateDialogResponse) ProtoMessage()
- func (x *CreateDialogResponse) ProtoReflect() protoreflect.Message
- func (x *CreateDialogResponse) Reset()
- func (x *CreateDialogResponse) String() string
- type CreateMessageRequest
- func (*CreateMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMessageRequest) GetDialogId() string
- func (x *CreateMessageRequest) GetSenderId() string
- func (x *CreateMessageRequest) GetText() string
- func (*CreateMessageRequest) ProtoMessage()
- func (x *CreateMessageRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMessageRequest) Reset()
- func (x *CreateMessageRequest) String() string
- type DialogServiceClient
- type DialogServiceServer
- type GetDialogMessagesRequest
- func (*GetDialogMessagesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDialogMessagesRequest) GetDialogId() string
- func (x *GetDialogMessagesRequest) GetUserId() string
- func (*GetDialogMessagesRequest) ProtoMessage()
- func (x *GetDialogMessagesRequest) ProtoReflect() protoreflect.Message
- func (x *GetDialogMessagesRequest) Reset()
- func (x *GetDialogMessagesRequest) String() string
- type GetDialogMessagesResponse
- func (*GetDialogMessagesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetDialogMessagesResponse) GetMessages() []*Message
- func (*GetDialogMessagesResponse) ProtoMessage()
- func (x *GetDialogMessagesResponse) ProtoReflect() protoreflect.Message
- func (x *GetDialogMessagesResponse) Reset()
- func (x *GetDialogMessagesResponse) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetDialogId() string
- func (x *Message) GetId() string
- func (x *Message) GetSenderId() string
- func (x *Message) GetText() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type UnimplementedDialogServiceServer
- func (UnimplementedDialogServiceServer) CreateDialog(context.Context, *CreateDialogRequest) (*CreateDialogResponse, error)
- func (UnimplementedDialogServiceServer) CreateMessage(context.Context, *CreateMessageRequest) (*emptypb.Empty, error)
- func (UnimplementedDialogServiceServer) GetDialogMessages(context.Context, *GetDialogMessagesRequest) (*GetDialogMessagesResponse, error)
- type UnsafeDialogServiceServer
Constants ¶
const ( DialogService_CreateDialog_FullMethodName = "/social_network.internalapi.DialogService/CreateDialog" DialogService_CreateMessage_FullMethodName = "/social_network.internalapi.DialogService/CreateMessage" DialogService_GetDialogMessages_FullMethodName = "/social_network.internalapi.DialogService/GetDialogMessages" )
Variables ¶
var DialogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "social_network.internalapi.DialogService", HandlerType: (*DialogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateDialog", Handler: _DialogService_CreateDialog_Handler, }, { MethodName: "CreateMessage", Handler: _DialogService_CreateMessage_Handler, }, { MethodName: "GetDialogMessages", Handler: _DialogService_GetDialogMessages_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internalapi/dialog_service.proto", }
DialogService_ServiceDesc is the grpc.ServiceDesc for DialogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_internalapi_dialog_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDialogServiceServer ¶
func RegisterDialogServiceServer(s grpc.ServiceRegistrar, srv DialogServiceServer)
Types ¶
type CreateDialogRequest ¶
type CreateDialogRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` ParticipantsIds []string `protobuf:"bytes,2,rep,name=participantsIds,proto3" json:"participantsIds,omitempty"` // contains filtered or unexported fields }
func (*CreateDialogRequest) Descriptor
deprecated
func (*CreateDialogRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateDialogRequest.ProtoReflect.Descriptor instead.
func (*CreateDialogRequest) GetParticipantsIds ¶
func (x *CreateDialogRequest) GetParticipantsIds() []string
func (*CreateDialogRequest) GetUserId ¶
func (x *CreateDialogRequest) GetUserId() string
func (*CreateDialogRequest) ProtoMessage ¶
func (*CreateDialogRequest) ProtoMessage()
func (*CreateDialogRequest) ProtoReflect ¶
func (x *CreateDialogRequest) ProtoReflect() protoreflect.Message
func (*CreateDialogRequest) Reset ¶
func (x *CreateDialogRequest) Reset()
func (*CreateDialogRequest) String ¶
func (x *CreateDialogRequest) String() string
type CreateDialogResponse ¶
type CreateDialogResponse struct { DialogId string `protobuf:"bytes,1,opt,name=dialogId,proto3" json:"dialogId,omitempty"` ParticipantsIds []string `protobuf:"bytes,2,rep,name=participantsIds,proto3" json:"participantsIds,omitempty"` // contains filtered or unexported fields }
func (*CreateDialogResponse) Descriptor
deprecated
func (*CreateDialogResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateDialogResponse.ProtoReflect.Descriptor instead.
func (*CreateDialogResponse) GetDialogId ¶
func (x *CreateDialogResponse) GetDialogId() string
func (*CreateDialogResponse) GetParticipantsIds ¶
func (x *CreateDialogResponse) GetParticipantsIds() []string
func (*CreateDialogResponse) ProtoMessage ¶
func (*CreateDialogResponse) ProtoMessage()
func (*CreateDialogResponse) ProtoReflect ¶
func (x *CreateDialogResponse) ProtoReflect() protoreflect.Message
func (*CreateDialogResponse) Reset ¶
func (x *CreateDialogResponse) Reset()
func (*CreateDialogResponse) String ¶
func (x *CreateDialogResponse) String() string
type CreateMessageRequest ¶
type CreateMessageRequest struct { DialogId string `protobuf:"bytes,1,opt,name=dialogId,proto3" json:"dialogId,omitempty"` SenderId string `protobuf:"bytes,2,opt,name=senderId,proto3" json:"senderId,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*CreateMessageRequest) Descriptor
deprecated
func (*CreateMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMessageRequest.ProtoReflect.Descriptor instead.
func (*CreateMessageRequest) GetDialogId ¶
func (x *CreateMessageRequest) GetDialogId() string
func (*CreateMessageRequest) GetSenderId ¶
func (x *CreateMessageRequest) GetSenderId() string
func (*CreateMessageRequest) GetText ¶
func (x *CreateMessageRequest) GetText() string
func (*CreateMessageRequest) ProtoMessage ¶
func (*CreateMessageRequest) ProtoMessage()
func (*CreateMessageRequest) ProtoReflect ¶
func (x *CreateMessageRequest) ProtoReflect() protoreflect.Message
func (*CreateMessageRequest) Reset ¶
func (x *CreateMessageRequest) Reset()
func (*CreateMessageRequest) String ¶
func (x *CreateMessageRequest) String() string
type DialogServiceClient ¶
type DialogServiceClient interface { CreateDialog(ctx context.Context, in *CreateDialogRequest, opts ...grpc.CallOption) (*CreateDialogResponse, error) CreateMessage(ctx context.Context, in *CreateMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetDialogMessages(ctx context.Context, in *GetDialogMessagesRequest, opts ...grpc.CallOption) (*GetDialogMessagesResponse, error) }
DialogServiceClient is the client API for DialogService 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 NewDialogServiceClient ¶
func NewDialogServiceClient(cc grpc.ClientConnInterface) DialogServiceClient
type DialogServiceServer ¶
type DialogServiceServer interface { CreateDialog(context.Context, *CreateDialogRequest) (*CreateDialogResponse, error) CreateMessage(context.Context, *CreateMessageRequest) (*emptypb.Empty, error) GetDialogMessages(context.Context, *GetDialogMessagesRequest) (*GetDialogMessagesResponse, error) // contains filtered or unexported methods }
DialogServiceServer is the server API for DialogService service. All implementations must embed UnimplementedDialogServiceServer for forward compatibility
type GetDialogMessagesRequest ¶
type GetDialogMessagesRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` DialogId string `protobuf:"bytes,2,opt,name=dialogId,proto3" json:"dialogId,omitempty"` // contains filtered or unexported fields }
func (*GetDialogMessagesRequest) Descriptor
deprecated
func (*GetDialogMessagesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetDialogMessagesRequest.ProtoReflect.Descriptor instead.
func (*GetDialogMessagesRequest) GetDialogId ¶
func (x *GetDialogMessagesRequest) GetDialogId() string
func (*GetDialogMessagesRequest) GetUserId ¶
func (x *GetDialogMessagesRequest) GetUserId() string
func (*GetDialogMessagesRequest) ProtoMessage ¶
func (*GetDialogMessagesRequest) ProtoMessage()
func (*GetDialogMessagesRequest) ProtoReflect ¶
func (x *GetDialogMessagesRequest) ProtoReflect() protoreflect.Message
func (*GetDialogMessagesRequest) Reset ¶
func (x *GetDialogMessagesRequest) Reset()
func (*GetDialogMessagesRequest) String ¶
func (x *GetDialogMessagesRequest) String() string
type GetDialogMessagesResponse ¶
type GetDialogMessagesResponse struct { Messages []*Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*GetDialogMessagesResponse) Descriptor
deprecated
func (*GetDialogMessagesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetDialogMessagesResponse.ProtoReflect.Descriptor instead.
func (*GetDialogMessagesResponse) GetMessages ¶
func (x *GetDialogMessagesResponse) GetMessages() []*Message
func (*GetDialogMessagesResponse) ProtoMessage ¶
func (*GetDialogMessagesResponse) ProtoMessage()
func (*GetDialogMessagesResponse) ProtoReflect ¶
func (x *GetDialogMessagesResponse) ProtoReflect() protoreflect.Message
func (*GetDialogMessagesResponse) Reset ¶
func (x *GetDialogMessagesResponse) Reset()
func (*GetDialogMessagesResponse) String ¶
func (x *GetDialogMessagesResponse) String() string
type Message ¶
type Message struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DialogId string `protobuf:"bytes,2,opt,name=dialogId,proto3" json:"dialogId,omitempty"` SenderId string `protobuf:"bytes,3,opt,name=senderId,proto3" json:"senderId,omitempty"` Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetDialogId ¶
func (*Message) GetSenderId ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type UnimplementedDialogServiceServer ¶
type UnimplementedDialogServiceServer struct { }
UnimplementedDialogServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDialogServiceServer) CreateDialog ¶
func (UnimplementedDialogServiceServer) CreateDialog(context.Context, *CreateDialogRequest) (*CreateDialogResponse, error)
func (UnimplementedDialogServiceServer) CreateMessage ¶
func (UnimplementedDialogServiceServer) CreateMessage(context.Context, *CreateMessageRequest) (*emptypb.Empty, error)
func (UnimplementedDialogServiceServer) GetDialogMessages ¶
func (UnimplementedDialogServiceServer) GetDialogMessages(context.Context, *GetDialogMessagesRequest) (*GetDialogMessagesResponse, error)
type UnsafeDialogServiceServer ¶
type UnsafeDialogServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDialogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DialogServiceServer will result in compilation errors.