Documentation ¶
Overview ¶
Package user implements the User gRPC service.
Package user implements the User gRPC service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { pb.UnimplementedUserServiceServer // contains filtered or unexported fields }
Service is the implementation of the User module service.
func New ¶
New returns a new instance of the User service with optional configurations. Returns an error if unable to obtain necessary DBus objects.
func (*Service) CreateUser ¶
func (s *Service) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (_ *emptypb.Empty, err error)
CreateUser creates a new user on the system.
func (*Service) ValidateUsername ¶
func (s *Service) ValidateUsername(ctx context.Context, req *pb.ValidateUsernameRequest) (*pb.ValidateUsernameResponse, error)
ValidateUsername validates the given username. Returns an enum value indicating the result of the validation.
Click to show internal directories.
Click to hide internal directories.