Documentation ¶
Index ¶
- Variables
- func RegisterMailServer(s grpc.ServiceRegistrar, srv MailServer)
- type ConnectRequest
- func (*ConnectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectRequest) GetClientid() uint64
- func (x *ConnectRequest) GetServer() string
- func (x *ConnectRequest) GetUseTLS() bool
- func (*ConnectRequest) ProtoMessage()
- func (x *ConnectRequest) ProtoReflect() protoreflect.Message
- func (x *ConnectRequest) Reset()
- func (x *ConnectRequest) String() string
- type ConnectResponce
- type DeleteRequest
- type Empty
- type ListMailboxesRequest
- func (*ListMailboxesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMailboxesRequest) GetClientPointer() uint64
- func (*ListMailboxesRequest) ProtoMessage()
- func (x *ListMailboxesRequest) ProtoReflect() protoreflect.Message
- func (x *ListMailboxesRequest) Reset()
- func (x *ListMailboxesRequest) String() string
- type ListMailboxesResponce
- func (*ListMailboxesResponce) Descriptor() ([]byte, []int)deprecated
- func (x *ListMailboxesResponce) GetMailboxName() string
- func (*ListMailboxesResponce) ProtoMessage()
- func (x *ListMailboxesResponce) ProtoReflect() protoreflect.Message
- func (x *ListMailboxesResponce) Reset()
- func (x *ListMailboxesResponce) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetClientPointer() uint64
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LogoutRequest
- type MailClient
- type MailServer
- type Mail_ListMailboxesClient
- type Mail_ListMailboxesServer
- type SelectMailboxRequest
- func (*SelectMailboxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SelectMailboxRequest) GetClientPointer() uint64
- func (x *SelectMailboxRequest) GetMailboxName() string
- func (x *SelectMailboxRequest) GetReadonly() bool
- func (*SelectMailboxRequest) ProtoMessage()
- func (x *SelectMailboxRequest) ProtoReflect() protoreflect.Message
- func (x *SelectMailboxRequest) Reset()
- func (x *SelectMailboxRequest) String() string
- type UnimplementedMailServer
- func (UnimplementedMailServer) ConnectClient(context.Context, *ConnectRequest) (*ConnectResponce, error)
- func (UnimplementedMailServer) DeleteClient(context.Context, *DeleteRequest) (*Empty, error)
- func (UnimplementedMailServer) ListMailboxes(*ListMailboxesRequest, Mail_ListMailboxesServer) error
- func (UnimplementedMailServer) LoginClient(context.Context, *LoginRequest) (*Empty, error)
- func (UnimplementedMailServer) LogoutClient(context.Context, *LogoutRequest) (*Empty, error)
- func (UnimplementedMailServer) SelectMailbox(context.Context, *SelectMailboxRequest) (*Empty, error)
- type UnsafeMailServer
Constants ¶
This section is empty.
Variables ¶
var File_mail_proto protoreflect.FileDescriptor
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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) ConnectClient(context.Context, *ConnectRequest) (*ConnectResponce, error)
func (UnimplementedMailServer) DeleteClient ¶
func (UnimplementedMailServer) DeleteClient(context.Context, *DeleteRequest) (*Empty, error)
func (UnimplementedMailServer) ListMailboxes ¶
func (UnimplementedMailServer) ListMailboxes(*ListMailboxesRequest, Mail_ListMailboxesServer) error
func (UnimplementedMailServer) LoginClient ¶
func (UnimplementedMailServer) LoginClient(context.Context, *LoginRequest) (*Empty, error)
func (UnimplementedMailServer) LogoutClient ¶
func (UnimplementedMailServer) LogoutClient(context.Context, *LogoutRequest) (*Empty, error)
func (UnimplementedMailServer) SelectMailbox ¶
func (UnimplementedMailServer) SelectMailbox(context.Context, *SelectMailboxRequest) (*Empty, error)
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.