protomail

package
v0.0.0-...-d952cb4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mail_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protomail.Mail",
	HandlerType: (*MailServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ConnectClient",
			Handler:    _Mail_ConnectClient_Handler,
		},
		{
			MethodName: "LoginClient",
			Handler:    _Mail_LoginClient_Handler,
		},
		{
			MethodName: "LogoutClient",
			Handler:    _Mail_LogoutClient_Handler,
		},
		{
			MethodName: "DeleteClient",
			Handler:    _Mail_DeleteClient_Handler,
		},
		{
			MethodName: "SelectMailbox",
			Handler:    _Mail_SelectMailbox_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListMailboxes",
			Handler:       _Mail_ListMailboxes_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "mail.proto",
}

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

Functions

func RegisterMailServer

func RegisterMailServer(s grpc.ServiceRegistrar, srv MailServer)

Types

type ConnectRequest

type ConnectRequest struct {
	Clientid uint64 `protobuf:"varint,1,opt,name=clientid,proto3" json:"clientid,omitempty"`
	Server   string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"`
	UseTLS   bool   `protobuf:"varint,3,opt,name=useTLS,proto3" json:"useTLS,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectRequest) Descriptor deprecated

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

Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.

func (*ConnectRequest) GetClientid

func (x *ConnectRequest) GetClientid() uint64

func (*ConnectRequest) GetServer

func (x *ConnectRequest) GetServer() string

func (*ConnectRequest) GetUseTLS

func (x *ConnectRequest) GetUseTLS() bool

func (*ConnectRequest) ProtoMessage

func (*ConnectRequest) ProtoMessage()

func (*ConnectRequest) ProtoReflect

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

func (*ConnectRequest) Reset

func (x *ConnectRequest) Reset()

func (*ConnectRequest) String

func (x *ConnectRequest) String() string

type ConnectResponce

type ConnectResponce struct {
	ClientPointer uint64 `protobuf:"varint,1,opt,name=clientPointer,proto3" json:"clientPointer,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectResponce) Descriptor deprecated

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

Deprecated: Use ConnectResponce.ProtoReflect.Descriptor instead.

func (*ConnectResponce) GetClientPointer

func (x *ConnectResponce) GetClientPointer() uint64

func (*ConnectResponce) ProtoMessage

func (*ConnectResponce) ProtoMessage()

func (*ConnectResponce) ProtoReflect

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

func (*ConnectResponce) Reset

func (x *ConnectResponce) Reset()

func (*ConnectResponce) String

func (x *ConnectResponce) String() string

type DeleteRequest

type DeleteRequest struct {
	ClientPointer uint64 `protobuf:"varint,1,opt,name=clientPointer,proto3" json:"clientPointer,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetClientPointer

func (x *DeleteRequest) GetClientPointer() uint64

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type ListMailboxesRequest

type ListMailboxesRequest struct {
	ClientPointer uint64 `protobuf:"varint,1,opt,name=clientPointer,proto3" json:"clientPointer,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMailboxesRequest) Descriptor deprecated

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

Deprecated: Use ListMailboxesRequest.ProtoReflect.Descriptor instead.

func (*ListMailboxesRequest) GetClientPointer

func (x *ListMailboxesRequest) GetClientPointer() uint64

func (*ListMailboxesRequest) ProtoMessage

func (*ListMailboxesRequest) ProtoMessage()

func (*ListMailboxesRequest) ProtoReflect

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

func (*ListMailboxesRequest) Reset

func (x *ListMailboxesRequest) Reset()

func (*ListMailboxesRequest) String

func (x *ListMailboxesRequest) String() string

type ListMailboxesResponce

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

func (*ListMailboxesResponce) Descriptor deprecated

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

Deprecated: Use ListMailboxesResponce.ProtoReflect.Descriptor instead.

func (*ListMailboxesResponce) GetMailboxName

func (x *ListMailboxesResponce) GetMailboxName() string

func (*ListMailboxesResponce) ProtoMessage

func (*ListMailboxesResponce) ProtoMessage()

func (*ListMailboxesResponce) ProtoReflect

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

func (*ListMailboxesResponce) Reset

func (x *ListMailboxesResponce) Reset()

func (*ListMailboxesResponce) String

func (x *ListMailboxesResponce) String() string

type LoginRequest

type LoginRequest struct {
	ClientPointer uint64 `protobuf:"varint,1,opt,name=clientPointer,proto3" json:"clientPointer,omitempty"`
	Username      string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Password      string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetClientPointer

func (x *LoginRequest) GetClientPointer() uint64

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LogoutRequest

type LogoutRequest struct {
	ClientPointer uint64 `protobuf:"varint,1,opt,name=clientPointer,proto3" json:"clientPointer,omitempty"`
	// contains filtered or unexported fields
}

func (*LogoutRequest) Descriptor deprecated

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

Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.

func (*LogoutRequest) GetClientPointer

func (x *LogoutRequest) GetClientPointer() uint64

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) ProtoReflect

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

func (*LogoutRequest) Reset

func (x *LogoutRequest) Reset()

func (*LogoutRequest) String

func (x *LogoutRequest) String() string

type MailClient

type MailClient interface {
	ConnectClient(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (*ConnectResponce, error)
	LoginClient(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Empty, error)
	LogoutClient(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteClient(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error)
	ListMailboxes(ctx context.Context, in *ListMailboxesRequest, opts ...grpc.CallOption) (Mail_ListMailboxesClient, error)
	SelectMailbox(ctx context.Context, in *SelectMailboxRequest, opts ...grpc.CallOption) (*Empty, error)
}

MailClient is the client API for Mail 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 NewMailClient

func NewMailClient(cc grpc.ClientConnInterface) MailClient

type MailServer

type MailServer interface {
	ConnectClient(context.Context, *ConnectRequest) (*ConnectResponce, error)
	LoginClient(context.Context, *LoginRequest) (*Empty, error)
	LogoutClient(context.Context, *LogoutRequest) (*Empty, error)
	DeleteClient(context.Context, *DeleteRequest) (*Empty, error)
	ListMailboxes(*ListMailboxesRequest, Mail_ListMailboxesServer) error
	SelectMailbox(context.Context, *SelectMailboxRequest) (*Empty, error)
	// contains filtered or unexported methods
}

MailServer is the server API for Mail service. All implementations must embed UnimplementedMailServer for forward compatibility

type Mail_ListMailboxesClient

type Mail_ListMailboxesClient interface {
	Recv() (*ListMailboxesResponce, error)
	grpc.ClientStream
}

type Mail_ListMailboxesServer

type Mail_ListMailboxesServer interface {
	Send(*ListMailboxesResponce) error
	grpc.ServerStream
}

type SelectMailboxRequest

type SelectMailboxRequest struct {
	ClientPointer uint64 `protobuf:"varint,1,opt,name=clientPointer,proto3" json:"clientPointer,omitempty"`
	MailboxName   string `protobuf:"bytes,2,opt,name=mailboxName,proto3" json:"mailboxName,omitempty"`
	Readonly      bool   `protobuf:"varint,3,opt,name=readonly,proto3" json:"readonly,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectMailboxRequest) Descriptor deprecated

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

Deprecated: Use SelectMailboxRequest.ProtoReflect.Descriptor instead.

func (*SelectMailboxRequest) GetClientPointer

func (x *SelectMailboxRequest) GetClientPointer() uint64

func (*SelectMailboxRequest) GetMailboxName

func (x *SelectMailboxRequest) GetMailboxName() string

func (*SelectMailboxRequest) GetReadonly

func (x *SelectMailboxRequest) GetReadonly() bool

func (*SelectMailboxRequest) ProtoMessage

func (*SelectMailboxRequest) ProtoMessage()

func (*SelectMailboxRequest) ProtoReflect

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

func (*SelectMailboxRequest) Reset

func (x *SelectMailboxRequest) Reset()

func (*SelectMailboxRequest) String

func (x *SelectMailboxRequest) String() string

type UnimplementedMailServer

type UnimplementedMailServer struct {
}

UnimplementedMailServer must be embedded to have forward compatible implementations.

func (UnimplementedMailServer) ConnectClient

func (UnimplementedMailServer) DeleteClient

func (UnimplementedMailServer) ListMailboxes

func (UnimplementedMailServer) LoginClient

func (UnimplementedMailServer) LogoutClient

func (UnimplementedMailServer) SelectMailbox

type UnsafeMailServer

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

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

Jump to

Keyboard shortcuts

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