Documentation ¶
Index ¶
- Variables
- func RegisterAccountServer(s *grpc.Server, srv AccountServer)
- type AccountClient
- type AccountServer
- type AuthenticateUserRequest
- func (*AuthenticateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateUserRequest) GetEmail() string
- func (x *AuthenticateUserRequest) GetPassword() string
- func (*AuthenticateUserRequest) ProtoMessage()
- func (x *AuthenticateUserRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateUserRequest) Reset()
- func (x *AuthenticateUserRequest) String() string
- type AuthenticateUserResponse
- func (*AuthenticateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateUserResponse) GetToken() string
- func (*AuthenticateUserResponse) ProtoMessage()
- func (x *AuthenticateUserResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateUserResponse) Reset()
- func (x *AuthenticateUserResponse) String() string
- type ChangeEmailRequest
- func (*ChangeEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeEmailRequest) GetEmail() string
- func (x *ChangeEmailRequest) GetNewEmail() string
- func (x *ChangeEmailRequest) GetPassword() string
- func (*ChangeEmailRequest) ProtoMessage()
- func (x *ChangeEmailRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeEmailRequest) Reset()
- func (x *ChangeEmailRequest) String() string
- type ChangeEmailResponse
- type ConfirmEmailRequest
- func (*ConfirmEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfirmEmailRequest) GetEmail() string
- func (x *ConfirmEmailRequest) GetToken() string
- func (*ConfirmEmailRequest) ProtoMessage()
- func (x *ConfirmEmailRequest) ProtoReflect() protoreflect.Message
- func (x *ConfirmEmailRequest) Reset()
- func (x *ConfirmEmailRequest) String() string
- type ConfirmEmailResponse
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetEmail() string
- func (x *CreateUserRequest) GetPassword() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetUserID() string
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserRequest) GetEmail() string
- func (x *DeleteUserRequest) GetPassword() string
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- type DeleteUserResponse
- type UnimplementedAccountServer
- func (*UnimplementedAccountServer) AuthenticateUser(context.Context, *AuthenticateUserRequest) (*AuthenticateUserResponse, error)
- func (*UnimplementedAccountServer) ChangeEmail(context.Context, *ChangeEmailRequest) (*ChangeEmailResponse, error)
- func (*UnimplementedAccountServer) ConfirmEmail(context.Context, *ConfirmEmailRequest) (*ConfirmEmailResponse, error)
- func (*UnimplementedAccountServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
- func (*UnimplementedAccountServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
var File_internal_account_pb_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServer ¶
func RegisterAccountServer(s *grpc.Server, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface { CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) ChangeEmail(ctx context.Context, in *ChangeEmailRequest, opts ...grpc.CallOption) (*ChangeEmailResponse, error) ConfirmEmail(ctx context.Context, in *ConfirmEmailRequest, opts ...grpc.CallOption) (*ConfirmEmailResponse, error) AuthenticateUser(ctx context.Context, in *AuthenticateUserRequest, opts ...grpc.CallOption) (*AuthenticateUserResponse, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient
type AccountServer ¶
type AccountServer interface { CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) ChangeEmail(context.Context, *ChangeEmailRequest) (*ChangeEmailResponse, error) ConfirmEmail(context.Context, *ConfirmEmailRequest) (*ConfirmEmailResponse, error) AuthenticateUser(context.Context, *AuthenticateUserRequest) (*AuthenticateUserResponse, error) }
AccountServer is the server API for Account service.
type AuthenticateUserRequest ¶
type AuthenticateUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateUserRequest) Descriptor
deprecated
func (*AuthenticateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateUserRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateUserRequest) GetEmail ¶
func (x *AuthenticateUserRequest) GetEmail() string
func (*AuthenticateUserRequest) GetPassword ¶
func (x *AuthenticateUserRequest) GetPassword() string
func (*AuthenticateUserRequest) ProtoMessage ¶
func (*AuthenticateUserRequest) ProtoMessage()
func (*AuthenticateUserRequest) ProtoReflect ¶
func (x *AuthenticateUserRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateUserRequest) Reset ¶
func (x *AuthenticateUserRequest) Reset()
func (*AuthenticateUserRequest) String ¶
func (x *AuthenticateUserRequest) String() string
type AuthenticateUserResponse ¶
type AuthenticateUserResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*AuthenticateUserResponse) Descriptor
deprecated
func (*AuthenticateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateUserResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateUserResponse) GetToken ¶
func (x *AuthenticateUserResponse) GetToken() string
func (*AuthenticateUserResponse) ProtoMessage ¶
func (*AuthenticateUserResponse) ProtoMessage()
func (*AuthenticateUserResponse) ProtoReflect ¶
func (x *AuthenticateUserResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateUserResponse) Reset ¶
func (x *AuthenticateUserResponse) Reset()
func (*AuthenticateUserResponse) String ¶
func (x *AuthenticateUserResponse) String() string
type ChangeEmailRequest ¶
type ChangeEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` NewEmail string `protobuf:"bytes,3,opt,name=newEmail,proto3" json:"newEmail,omitempty"` // contains filtered or unexported fields }
func (*ChangeEmailRequest) Descriptor
deprecated
func (*ChangeEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeEmailRequest.ProtoReflect.Descriptor instead.
func (*ChangeEmailRequest) GetEmail ¶
func (x *ChangeEmailRequest) GetEmail() string
func (*ChangeEmailRequest) GetNewEmail ¶
func (x *ChangeEmailRequest) GetNewEmail() string
func (*ChangeEmailRequest) GetPassword ¶
func (x *ChangeEmailRequest) GetPassword() string
func (*ChangeEmailRequest) ProtoMessage ¶
func (*ChangeEmailRequest) ProtoMessage()
func (*ChangeEmailRequest) ProtoReflect ¶
func (x *ChangeEmailRequest) ProtoReflect() protoreflect.Message
func (*ChangeEmailRequest) Reset ¶
func (x *ChangeEmailRequest) Reset()
func (*ChangeEmailRequest) String ¶
func (x *ChangeEmailRequest) String() string
type ChangeEmailResponse ¶
type ChangeEmailResponse struct {
// contains filtered or unexported fields
}
func (*ChangeEmailResponse) Descriptor
deprecated
func (*ChangeEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangeEmailResponse.ProtoReflect.Descriptor instead.
func (*ChangeEmailResponse) ProtoMessage ¶
func (*ChangeEmailResponse) ProtoMessage()
func (*ChangeEmailResponse) ProtoReflect ¶
func (x *ChangeEmailResponse) ProtoReflect() protoreflect.Message
func (*ChangeEmailResponse) Reset ¶
func (x *ChangeEmailResponse) Reset()
func (*ChangeEmailResponse) String ¶
func (x *ChangeEmailResponse) String() string
type ConfirmEmailRequest ¶
type ConfirmEmailRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ConfirmEmailRequest) Descriptor
deprecated
func (*ConfirmEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmEmailRequest.ProtoReflect.Descriptor instead.
func (*ConfirmEmailRequest) GetEmail ¶
func (x *ConfirmEmailRequest) GetEmail() string
func (*ConfirmEmailRequest) GetToken ¶
func (x *ConfirmEmailRequest) GetToken() string
func (*ConfirmEmailRequest) ProtoMessage ¶
func (*ConfirmEmailRequest) ProtoMessage()
func (*ConfirmEmailRequest) ProtoReflect ¶
func (x *ConfirmEmailRequest) ProtoReflect() protoreflect.Message
func (*ConfirmEmailRequest) Reset ¶
func (x *ConfirmEmailRequest) Reset()
func (*ConfirmEmailRequest) String ¶
func (x *ConfirmEmailRequest) String() string
type ConfirmEmailResponse ¶
type ConfirmEmailResponse struct {
// contains filtered or unexported fields
}
func (*ConfirmEmailResponse) Descriptor
deprecated
func (*ConfirmEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmEmailResponse.ProtoReflect.Descriptor instead.
func (*ConfirmEmailResponse) ProtoMessage ¶
func (*ConfirmEmailResponse) ProtoMessage()
func (*ConfirmEmailResponse) ProtoReflect ¶
func (x *ConfirmEmailResponse) ProtoReflect() protoreflect.Message
func (*ConfirmEmailResponse) Reset ¶
func (x *ConfirmEmailResponse) Reset()
func (*ConfirmEmailResponse) String ¶
func (x *ConfirmEmailResponse) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetEmail ¶
func (x *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetUserID ¶
func (x *CreateUserResponse) GetUserID() string
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetEmail ¶
func (x *DeleteUserRequest) GetEmail() string
func (*DeleteUserRequest) GetPassword ¶
func (x *DeleteUserRequest) GetPassword() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct {
// contains filtered or unexported fields
}
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountServer) AuthenticateUser ¶
func (*UnimplementedAccountServer) AuthenticateUser(context.Context, *AuthenticateUserRequest) (*AuthenticateUserResponse, error)
func (*UnimplementedAccountServer) ChangeEmail ¶
func (*UnimplementedAccountServer) ChangeEmail(context.Context, *ChangeEmailRequest) (*ChangeEmailResponse, error)
func (*UnimplementedAccountServer) ConfirmEmail ¶
func (*UnimplementedAccountServer) ConfirmEmail(context.Context, *ConfirmEmailRequest) (*ConfirmEmailResponse, error)
func (*UnimplementedAccountServer) CreateUser ¶
func (*UnimplementedAccountServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
func (*UnimplementedAccountServer) DeleteUser ¶
func (*UnimplementedAccountServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)