Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) GetOrganization(ctx context.Context, req *connect.Request[orgv1.GetOrganizationRequest]) (*connect.Response[orgv1.Organization], error)
- func (s *Service) ListOrganizations(ctx context.Context, req *connect.Request[orgv1.ListOrganizationsRequest]) (*connect.Response[orgv1.ListOrganizationsResponse], error)
- func (s *Service) NewServiceHandler(opts ...connect.HandlerOption) (string, http.Handler)
- func (s *Service) UpdateOrganization(ctx context.Context, req *connect.Request[orgv1.UpdateOrganizationRequest]) (*connect.Response[orgv1.Organization], error)
Constants ¶
View Source
const ResourceType = "org"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
orgv1alpha1connect.UnimplementedOrganizationServiceHandler
// contains filtered or unexported fields
}
Service implements the OrganizationService
func (*Service) GetOrganization ¶
func (s *Service) GetOrganization( ctx context.Context, req *connect.Request[orgv1.GetOrganizationRequest], ) (*connect.Response[orgv1.Organization], error)
GetOrganization retrieves an organization by ID
func (*Service) ListOrganizations ¶
func (s *Service) ListOrganizations( ctx context.Context, req *connect.Request[orgv1.ListOrganizationsRequest], ) (*connect.Response[orgv1.ListOrganizationsResponse], error)
ListOrganizations lists organizations with pagination
func (*Service) NewServiceHandler ¶
NewServiceHandler returns a connect service path and handler
func (*Service) UpdateOrganization ¶
func (s *Service) UpdateOrganization( ctx context.Context, req *connect.Request[orgv1.UpdateOrganizationRequest], ) (*connect.Response[orgv1.Organization], error)
UpdateOrganization updates an existing organization
Click to show internal directories.
Click to hide internal directories.