Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) GetUser(ctx context.Context, req *connect.Request[userv1.GetUserRequest]) (*connect.Response[userv1.User], error)
- func (s *Service) ListUsers(ctx context.Context, req *connect.Request[userv1.ListUsersRequest]) (*connect.Response[userv1.ListUsersResponse], error)
- func (s *Service) NewServiceHandler(opts ...connect.HandlerOption) (string, http.Handler)
- func (s *Service) UpdateUser(ctx context.Context, req *connect.Request[userv1.UpdateUserRequest]) (*connect.Response[userv1.User], error)
Constants ¶
View Source
const ResourceType = "user"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
userv1alpha1connect.UnimplementedUserServiceHandler
// contains filtered or unexported fields
}
Service implements the UserService
func (*Service) GetUser ¶
func (s *Service) GetUser( ctx context.Context, req *connect.Request[userv1.GetUserRequest], ) (*connect.Response[userv1.User], error)
GetUser retrieves a user by ID
func (*Service) ListUsers ¶
func (s *Service) ListUsers( ctx context.Context, req *connect.Request[userv1.ListUsersRequest], ) (*connect.Response[userv1.ListUsersResponse], error)
ListUsers lists users in an organization with pagination
func (*Service) NewServiceHandler ¶
NewServiceHandler returns a connect service path and handler
Click to show internal directories.
Click to hide internal directories.