Documentation ¶
Index ¶
- type Securer
- type Server
- func (s *Server) AddUser(ctx context.Context, user *pbUser.AddUserRequest) (*pbUser.Empty, error)
- func (s *Server) DeleteUser(ctx context.Context, user *pbUser.UserRequest) (*pbUser.Empty, error)
- func (s *Server) GetUser(ctx context.Context, user *pbUser.UserRequest) (*pbUser.UserPublicResponse, error)
- func (s *Server) GetUserRestricted(ctx context.Context, user *pbUser.UserRequest) (*pbUser.UserPrivateResponse, error)
- func (s *Server) ListUsers(ctx context.Context, Empty *pbUser.Empty) (*pbUser.UserListResponse, error)
- func (s *Server) ResetUserPassword(ctx context.Context, ResetUserPasswordRequest *pbUser.ResetUserPasswordRequest) (*pbUser.Empty, error)
- func (s *Server) UpdateUser(ctx context.Context, updateUserRequest *pbUser.UpdateUserRequest) (*pbUser.Empty, error)
- func (s *Server) UpdateUserRestricted(ctx context.Context, ...) (*pbUser.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the UserService
func (*Server) DeleteUser ¶
DeleteUser Deletes a user from the DB
func (*Server) GetUser ¶
func (s *Server) GetUser(ctx context.Context, user *pbUser.UserRequest) (*pbUser.UserPublicResponse, error)
GetUser Gets a user from the DB
func (*Server) GetUserRestricted ¶
func (s *Server) GetUserRestricted(ctx context.Context, user *pbUser.UserRequest) (*pbUser.UserPrivateResponse, error)
GetUserRestricted intended for privileged roles only supplies more detailed, private info about user.
func (*Server) ListUsers ¶
func (s *Server) ListUsers(ctx context.Context, Empty *pbUser.Empty) (*pbUser.UserListResponse, error)
ListUsers lists all users in the store.
func (*Server) ResetUserPassword ¶
func (s *Server) ResetUserPassword(ctx context.Context, ResetUserPasswordRequest *pbUser.ResetUserPasswordRequest) (*pbUser.Empty, error)
ResetUserPassword reset's a user's password
func (*Server) UpdateUser ¶
func (s *Server) UpdateUser(ctx context.Context, updateUserRequest *pbUser.UpdateUserRequest) (*pbUser.Empty, error)
UpdateUser gets a user to the in-memory store.
func (*Server) UpdateUserRestricted ¶
func (s *Server) UpdateUserRestricted(ctx context.Context, updateUserRestrictedRequest *pbUser.UpdateUserRestrictedRequest) (*pbUser.Empty, error)
UpdateUser gets a user to the in-memory store.
Click to show internal directories.
Click to hide internal directories.