Documentation ¶
Index ¶
- func Permission(ctx context.Context) map[string]storage.ResAct
- type CoreUser
- type Handler
- func (h *Handler) CreateUser(ctx context.Context, req *upb.CreateUserRequest) (*upb.CreateUserResponse, error)
- func (h *Handler) DeleteUser(ctx context.Context, req *upb.DeleteUserRequest) (*emptypb.Empty, error)
- func (h *Handler) GetUserByEmail(ctx context.Context, req *upb.GetUserByEmailRequest) (*upb.GetUserByEmailResponse, error)
- func (h *Handler) GetUserByID(ctx context.Context, req *upb.GetUserByIDRequest) (*upb.GetUserByIDResponse, error)
- func (h *Handler) GetUserByUsername(ctx context.Context, req *upb.GetUserByUsernameRequest) (*upb.GetUserByUsernameResponse, error)
- func (h *Handler) ListUsers(ctx context.Context, req *userG.ListUsersRequest) (*userG.ListUsersResponse, error)
- func (h *Handler) RegisterSvc(srv *grpc.Server) error
- func (h *Handler) UpdateUser(ctx context.Context, req *upb.UpdateUserRequest) (*upb.UpdateUserResponse, error)
- func (h *Handler) ValidateRequestedData(ctx context.Context, req storage.User, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoreUser ¶
type CoreUser interface { CreateUser(context.Context, storage.User) (string, error) UpdateUser(context.Context, storage.User) (*storage.User, error) DeleteUser(context.Context, storage.User) error GetUserByEmail(context.Context, string) (*storage.User, error) GetUserByID(context.Context, string) (*storage.User, error) GetUserByUsername(context.Context, string) (*storage.User, error) ListUsers(context.Context, storage.FilterUser) ([]storage.User, error) GetUserInformationByUserID(context.Context, string) (*storage.UserInformation, error) UpdateUserInformationByUserID(context.Context, storage.UserInformation) (*storage.UserInformation, error) }
type Handler ¶
type Handler struct { upb.UnimplementedUserServiceServer // contains filtered or unexported fields }
func (*Handler) CreateUser ¶
func (h *Handler) CreateUser(ctx context.Context, req *upb.CreateUserRequest) (*upb.CreateUserResponse, error)
func (*Handler) DeleteUser ¶
func (*Handler) GetUserByEmail ¶
func (h *Handler) GetUserByEmail(ctx context.Context, req *upb.GetUserByEmailRequest) (*upb.GetUserByEmailResponse, error)
func (*Handler) GetUserByID ¶
func (h *Handler) GetUserByID(ctx context.Context, req *upb.GetUserByIDRequest) (*upb.GetUserByIDResponse, error)
func (*Handler) GetUserByUsername ¶
func (h *Handler) GetUserByUsername(ctx context.Context, req *upb.GetUserByUsernameRequest) (*upb.GetUserByUsernameResponse, error)
func (*Handler) ListUsers ¶
func (h *Handler) ListUsers(ctx context.Context, req *userG.ListUsersRequest) (*userG.ListUsersResponse, error)
func (*Handler) RegisterSvc ¶
// RegisterService with grpc server.
func (*Handler) UpdateUser ¶
func (h *Handler) UpdateUser(ctx context.Context, req *upb.UpdateUserRequest) (*upb.UpdateUserResponse, error)
Click to show internal directories.
Click to hide internal directories.