Documentation ¶
Index ¶
- Variables
- func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetEmail() string
- func (x *CreateRequest) GetLogin() string
- func (x *CreateRequest) GetPassword() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type GetByIdRequest
- type GetByIdResponse
- func (*GetByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIdResponse) GetEmail() string
- func (x *GetByIdResponse) GetId() int32
- func (x *GetByIdResponse) GetLogin() string
- func (*GetByIdResponse) ProtoMessage()
- func (x *GetByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetByIdResponse) Reset()
- func (x *GetByIdResponse) String() string
- type MailPayload
- func (*MailPayload) Descriptor() ([]byte, []int)deprecated
- func (x *MailPayload) GetHTML() string
- func (x *MailPayload) GetReceivers() []string
- func (x *MailPayload) GetSubject() string
- func (*MailPayload) ProtoMessage()
- func (x *MailPayload) ProtoReflect() protoreflect.Message
- func (x *MailPayload) Reset()
- func (x *MailPayload) String() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetEmail() string
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- type UnimplementedUsersServer
- func (UnimplementedUsersServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedUsersServer) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error)
- func (UnimplementedUsersServer) ResetPassword(context.Context, *ResetPasswordRequest) (*empty.Empty, error)
- type UnsafeUsersServer
- type UsersClient
- type UsersServer
Constants ¶
This section is empty.
Variables ¶
var File_Protos_email_proto protoreflect.FileDescriptor
var File_Protos_user_proto protoreflect.FileDescriptor
var Users_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.Users", HandlerType: (*UsersServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Users_Create_Handler, }, { MethodName: "GetById", Handler: _Users_GetById_Handler, }, { MethodName: "ResetPassword", Handler: _Users_ResetPassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "Protos/user.proto", }
Users_ServiceDesc is the grpc.ServiceDesc for Users service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUsersServer ¶
func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
Create
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetEmail ¶
func (x *CreateRequest) GetEmail() string
func (*CreateRequest) GetLogin ¶
func (x *CreateRequest) GetLogin() string
func (*CreateRequest) GetPassword ¶
func (x *CreateRequest) GetPassword() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetId ¶
func (x *CreateResponse) GetId() int32
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type GetByIdRequest ¶
type GetByIdRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetById
func (*GetByIdRequest) Descriptor
deprecated
func (*GetByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdRequest.ProtoReflect.Descriptor instead.
func (*GetByIdRequest) GetId ¶
func (x *GetByIdRequest) GetId() int32
func (*GetByIdRequest) ProtoMessage ¶
func (*GetByIdRequest) ProtoMessage()
func (*GetByIdRequest) ProtoReflect ¶
func (x *GetByIdRequest) ProtoReflect() protoreflect.Message
func (*GetByIdRequest) Reset ¶
func (x *GetByIdRequest) Reset()
func (*GetByIdRequest) String ¶
func (x *GetByIdRequest) String() string
type GetByIdResponse ¶
type GetByIdResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetByIdResponse) Descriptor
deprecated
func (*GetByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdResponse.ProtoReflect.Descriptor instead.
func (*GetByIdResponse) GetEmail ¶
func (x *GetByIdResponse) GetEmail() string
func (*GetByIdResponse) GetId ¶
func (x *GetByIdResponse) GetId() int32
func (*GetByIdResponse) GetLogin ¶
func (x *GetByIdResponse) GetLogin() string
func (*GetByIdResponse) ProtoMessage ¶
func (*GetByIdResponse) ProtoMessage()
func (*GetByIdResponse) ProtoReflect ¶
func (x *GetByIdResponse) ProtoReflect() protoreflect.Message
func (*GetByIdResponse) Reset ¶
func (x *GetByIdResponse) Reset()
func (*GetByIdResponse) String ¶
func (x *GetByIdResponse) String() string
type MailPayload ¶
type MailPayload struct { HTML string `protobuf:"bytes,1,opt,name=HTML,proto3" json:"HTML,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` Receivers []string `protobuf:"bytes,3,rep,name=receivers,proto3" json:"receivers,omitempty"` // contains filtered or unexported fields }
func (*MailPayload) Descriptor
deprecated
func (*MailPayload) Descriptor() ([]byte, []int)
Deprecated: Use MailPayload.ProtoReflect.Descriptor instead.
func (*MailPayload) GetHTML ¶
func (x *MailPayload) GetHTML() string
func (*MailPayload) GetReceivers ¶
func (x *MailPayload) GetReceivers() []string
func (*MailPayload) GetSubject ¶
func (x *MailPayload) GetSubject() string
func (*MailPayload) ProtoMessage ¶
func (*MailPayload) ProtoMessage()
func (*MailPayload) ProtoReflect ¶
func (x *MailPayload) ProtoReflect() protoreflect.Message
func (*MailPayload) Reset ¶
func (x *MailPayload) Reset()
func (*MailPayload) String ¶
func (x *MailPayload) String() string
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
GetById
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetEmail ¶
func (x *ResetPasswordRequest) GetEmail() string
func (*ResetPasswordRequest) ProtoMessage ¶
func (*ResetPasswordRequest) ProtoMessage()
func (*ResetPasswordRequest) ProtoReflect ¶
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetPasswordRequest) Reset ¶
func (x *ResetPasswordRequest) Reset()
func (*ResetPasswordRequest) String ¶
func (x *ResetPasswordRequest) String() string
type UnimplementedUsersServer ¶
type UnimplementedUsersServer struct { }
UnimplementedUsersServer must be embedded to have forward compatible implementations.
func (UnimplementedUsersServer) Create ¶
func (UnimplementedUsersServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedUsersServer) GetById ¶
func (UnimplementedUsersServer) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error)
func (UnimplementedUsersServer) ResetPassword ¶
func (UnimplementedUsersServer) ResetPassword(context.Context, *ResetPasswordRequest) (*empty.Empty, error)
type UnsafeUsersServer ¶
type UnsafeUsersServer interface {
// contains filtered or unexported methods
}
UnsafeUsersServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsersServer will result in compilation errors.
type UsersClient ¶
type UsersClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) GetById(ctx context.Context, in *GetByIdRequest, opts ...grpc.CallOption) (*GetByIdResponse, error) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
UsersClient is the client API for Users 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 NewUsersClient ¶
func NewUsersClient(cc grpc.ClientConnInterface) UsersClient
type UsersServer ¶
type UsersServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error) ResetPassword(context.Context, *ResetPasswordRequest) (*empty.Empty, error) // contains filtered or unexported methods }
UsersServer is the server API for Users service. All implementations must embed UnimplementedUsersServer for forward compatibility