internalapi

package
v0.0.0-...-7669f62 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

View Source
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)

View Source
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.

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetDialogId

func (x *Message) GetDialogId() string

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetSenderId

func (x *Message) GetSenderId() string

func (*Message) GetText

func (x *Message) GetText() 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 UnimplementedDialogServiceServer

type UnimplementedDialogServiceServer struct {
}

UnimplementedDialogServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDialogServiceServer) CreateDialog

func (UnimplementedDialogServiceServer) CreateMessage

func (UnimplementedDialogServiceServer) GetDialogMessages

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.

Jump to

Keyboard shortcuts

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