service

package
v0.0.0-...-34841a2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S

func (*S) CreateGroup

func (s *S) CreateGroup(ctx context.Context, req *userV1.CreateGroupRequest) (*userV1.CreateGroupResponse, error)

func (*S) GetGroup

func (s *S) GetGroup(ctx context.Context, req *userV1.GetGroupRequest) (*userV1.GetGroupResponse, error)

func (*S) GetUser

func (s *S) GetUser(ctx context.Context, req *userV1.GetUserRequest) (*userV1.GetUserResponse, error)

GetUser retrieves a user's information based on the provided request, ensuring proper authentication and input validation.

func (*S) GetUserInfo

func (s *S) GetUserInfo(ctx context.Context, req *userV1.GetUserInfoRequest) (*userV1.GetUserInfoResponse, error)

func (*S) GetUserPassKey

func (*S) GroupAddUser

func (*S) GroupUserUpdate

GroupUserUpdate updates a user's metadata within a group, enforcing authentication, authorization, and validation checks.

func (*S) UpdateGroup

func (s *S) UpdateGroup(ctx context.Context, req *userV1.UpdateGroupRequest) (*userV1.UpdateGroupResponse, error)

UpdateGroup updates a group's information based on the provided request, ensuring the caller is authenticated, the request is valid, and has necessary permissions. It returns an error if the user is unauthenticated, the group ID is empty, or the user lacks sufficient permissions to update the group.

func (*S) UpdatePassword

UpdatePassword updates a user's password based on the provided old and new password, ensuring the user is authenticated and the old password is correct. It returns an error if the user is unauthenticated, the old password doesn't match, or there's an internal error during the update process.

func (*S) UpdateUser

func (s *S) UpdateUser(ctx context.Context, req *userV1.UpdateUserRequest) (*userV1.UpdateUserResponse, error)

UpdateUser updates a user's information based on the provided request, ensuring authentication, input validation, and authorization.

Jump to

Keyboard shortcuts

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