Documentation ¶
Index ¶
- Constants
- func NewOrganizationServiceHandler(svc OrganizationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type OrganizationServiceClient
- type OrganizationServiceHandler
- type UnimplementedOrganizationServiceHandler
- func (UnimplementedOrganizationServiceHandler) CreateOrganization(context.Context, *connect.Request[organizations.CreateOrganizationRequest]) (*connect.Response[organizations.CreateOrganizationResponse], error)
- func (UnimplementedOrganizationServiceHandler) DeleteOrganization(context.Context, *connect.Request[organizations.DeleteOrganizationRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedOrganizationServiceHandler) DeletePortalLink(context.Context, *connect.Request[organizations.DeletePortalLinkRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedOrganizationServiceHandler) DeletePortalLinkByID(context.Context, *connect.Request[organizations.DeletePortalLinkByIdRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedOrganizationServiceHandler) GeneratePortalLink(context.Context, *connect.Request[organizations.GeneratePortalLinkRequest]) (*connect.Response[organizations.GeneratePortalLinkResponse], error)
- func (UnimplementedOrganizationServiceHandler) GetOrganization(context.Context, *connect.Request[organizations.GetOrganizationRequest]) (*connect.Response[organizations.GetOrganizationResponse], error)
- func (UnimplementedOrganizationServiceHandler) GetPortalLinks(context.Context, *connect.Request[organizations.GetPortalLinkRequest]) (*connect.Response[organizations.GetPortalLinksResponse], error)
- func (UnimplementedOrganizationServiceHandler) ListOrganization(context.Context, *connect.Request[organizations.ListOrganizationsRequest]) (*connect.Response[organizations.ListOrganizationsResponse], error)
- func (UnimplementedOrganizationServiceHandler) SearchOrganization(context.Context, *connect.Request[organizations.SearchOrganizationsRequest]) (*connect.Response[organizations.SearchOrganizationsResponse], error)
- func (UnimplementedOrganizationServiceHandler) UpdateOrganization(context.Context, *connect.Request[organizations.UpdateOrganizationRequest]) (*connect.Response[organizations.UpdateOrganizationResponse], error)
Constants ¶
const ( // OrganizationServiceCreateOrganizationProcedure is the fully-qualified name of the // OrganizationService's CreateOrganization RPC. OrganizationServiceCreateOrganizationProcedure = "/scalekit.v1.organizations.OrganizationService/CreateOrganization" // OrganizationServiceUpdateOrganizationProcedure is the fully-qualified name of the // OrganizationService's UpdateOrganization RPC. OrganizationServiceUpdateOrganizationProcedure = "/scalekit.v1.organizations.OrganizationService/UpdateOrganization" // OrganizationServiceGetOrganizationProcedure is the fully-qualified name of the // OrganizationService's GetOrganization RPC. OrganizationServiceGetOrganizationProcedure = "/scalekit.v1.organizations.OrganizationService/GetOrganization" // OrganizationServiceListOrganizationProcedure is the fully-qualified name of the // OrganizationService's ListOrganization RPC. OrganizationServiceListOrganizationProcedure = "/scalekit.v1.organizations.OrganizationService/ListOrganization" // OrganizationServiceSearchOrganizationProcedure is the fully-qualified name of the // OrganizationService's SearchOrganization RPC. OrganizationServiceSearchOrganizationProcedure = "/scalekit.v1.organizations.OrganizationService/SearchOrganization" // OrganizationServiceDeleteOrganizationProcedure is the fully-qualified name of the // OrganizationService's DeleteOrganization RPC. OrganizationServiceDeleteOrganizationProcedure = "/scalekit.v1.organizations.OrganizationService/DeleteOrganization" // OrganizationServiceGeneratePortalLinkProcedure is the fully-qualified name of the // OrganizationService's GeneratePortalLink RPC. OrganizationServiceGeneratePortalLinkProcedure = "/scalekit.v1.organizations.OrganizationService/GeneratePortalLink" // OrganizationServiceDeletePortalLinkProcedure is the fully-qualified name of the // OrganizationService's DeletePortalLink RPC. OrganizationServiceDeletePortalLinkProcedure = "/scalekit.v1.organizations.OrganizationService/DeletePortalLink" // OrganizationServiceDeletePortalLinkByIDProcedure is the fully-qualified name of the // OrganizationService's DeletePortalLinkByID RPC. OrganizationServiceDeletePortalLinkByIDProcedure = "/scalekit.v1.organizations.OrganizationService/DeletePortalLinkByID" // OrganizationServiceGetPortalLinksProcedure is the fully-qualified name of the // OrganizationService's GetPortalLinks RPC. OrganizationServiceGetPortalLinksProcedure = "/scalekit.v1.organizations.OrganizationService/GetPortalLinks" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// OrganizationServiceName is the fully-qualified name of the OrganizationService service.
OrganizationServiceName = "scalekit.v1.organizations.OrganizationService"
)
Variables ¶
This section is empty.
Functions ¶
func NewOrganizationServiceHandler ¶
func NewOrganizationServiceHandler(svc OrganizationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewOrganizationServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type OrganizationServiceClient ¶
type OrganizationServiceClient interface { // Create Organization CreateOrganization(context.Context, *connect.Request[organizations.CreateOrganizationRequest]) (*connect.Response[organizations.CreateOrganizationResponse], error) UpdateOrganization(context.Context, *connect.Request[organizations.UpdateOrganizationRequest]) (*connect.Response[organizations.UpdateOrganizationResponse], error) GetOrganization(context.Context, *connect.Request[organizations.GetOrganizationRequest]) (*connect.Response[organizations.GetOrganizationResponse], error) ListOrganization(context.Context, *connect.Request[organizations.ListOrganizationsRequest]) (*connect.Response[organizations.ListOrganizationsResponse], error) SearchOrganization(context.Context, *connect.Request[organizations.SearchOrganizationsRequest]) (*connect.Response[organizations.SearchOrganizationsResponse], error) // Delete an Organization DeleteOrganization(context.Context, *connect.Request[organizations.DeleteOrganizationRequest]) (*connect.Response[emptypb.Empty], error) // Generate Portal Link for Org GeneratePortalLink(context.Context, *connect.Request[organizations.GeneratePortalLinkRequest]) (*connect.Response[organizations.GeneratePortalLinkResponse], error) DeletePortalLink(context.Context, *connect.Request[organizations.DeletePortalLinkRequest]) (*connect.Response[emptypb.Empty], error) DeletePortalLinkByID(context.Context, *connect.Request[organizations.DeletePortalLinkByIdRequest]) (*connect.Response[emptypb.Empty], error) GetPortalLinks(context.Context, *connect.Request[organizations.GetPortalLinkRequest]) (*connect.Response[organizations.GetPortalLinksResponse], error) }
OrganizationServiceClient is a client for the scalekit.v1.organizations.OrganizationService service.
func NewOrganizationServiceClient ¶
func NewOrganizationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OrganizationServiceClient
NewOrganizationServiceClient constructs a client for the scalekit.v1.organizations.OrganizationService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type OrganizationServiceHandler ¶
type OrganizationServiceHandler interface { // Create Organization CreateOrganization(context.Context, *connect.Request[organizations.CreateOrganizationRequest]) (*connect.Response[organizations.CreateOrganizationResponse], error) UpdateOrganization(context.Context, *connect.Request[organizations.UpdateOrganizationRequest]) (*connect.Response[organizations.UpdateOrganizationResponse], error) GetOrganization(context.Context, *connect.Request[organizations.GetOrganizationRequest]) (*connect.Response[organizations.GetOrganizationResponse], error) ListOrganization(context.Context, *connect.Request[organizations.ListOrganizationsRequest]) (*connect.Response[organizations.ListOrganizationsResponse], error) SearchOrganization(context.Context, *connect.Request[organizations.SearchOrganizationsRequest]) (*connect.Response[organizations.SearchOrganizationsResponse], error) // Delete an Organization DeleteOrganization(context.Context, *connect.Request[organizations.DeleteOrganizationRequest]) (*connect.Response[emptypb.Empty], error) // Generate Portal Link for Org GeneratePortalLink(context.Context, *connect.Request[organizations.GeneratePortalLinkRequest]) (*connect.Response[organizations.GeneratePortalLinkResponse], error) DeletePortalLink(context.Context, *connect.Request[organizations.DeletePortalLinkRequest]) (*connect.Response[emptypb.Empty], error) DeletePortalLinkByID(context.Context, *connect.Request[organizations.DeletePortalLinkByIdRequest]) (*connect.Response[emptypb.Empty], error) GetPortalLinks(context.Context, *connect.Request[organizations.GetPortalLinkRequest]) (*connect.Response[organizations.GetPortalLinksResponse], error) }
OrganizationServiceHandler is an implementation of the scalekit.v1.organizations.OrganizationService service.
type UnimplementedOrganizationServiceHandler ¶
type UnimplementedOrganizationServiceHandler struct{}
UnimplementedOrganizationServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedOrganizationServiceHandler) CreateOrganization ¶
func (UnimplementedOrganizationServiceHandler) CreateOrganization(context.Context, *connect.Request[organizations.CreateOrganizationRequest]) (*connect.Response[organizations.CreateOrganizationResponse], error)
func (UnimplementedOrganizationServiceHandler) DeleteOrganization ¶
func (UnimplementedOrganizationServiceHandler) DeleteOrganization(context.Context, *connect.Request[organizations.DeleteOrganizationRequest]) (*connect.Response[emptypb.Empty], error)
func (UnimplementedOrganizationServiceHandler) DeletePortalLink ¶
func (UnimplementedOrganizationServiceHandler) DeletePortalLink(context.Context, *connect.Request[organizations.DeletePortalLinkRequest]) (*connect.Response[emptypb.Empty], error)
func (UnimplementedOrganizationServiceHandler) DeletePortalLinkByID ¶
func (UnimplementedOrganizationServiceHandler) DeletePortalLinkByID(context.Context, *connect.Request[organizations.DeletePortalLinkByIdRequest]) (*connect.Response[emptypb.Empty], error)
func (UnimplementedOrganizationServiceHandler) GeneratePortalLink ¶
func (UnimplementedOrganizationServiceHandler) GeneratePortalLink(context.Context, *connect.Request[organizations.GeneratePortalLinkRequest]) (*connect.Response[organizations.GeneratePortalLinkResponse], error)
func (UnimplementedOrganizationServiceHandler) GetOrganization ¶
func (UnimplementedOrganizationServiceHandler) GetOrganization(context.Context, *connect.Request[organizations.GetOrganizationRequest]) (*connect.Response[organizations.GetOrganizationResponse], error)
func (UnimplementedOrganizationServiceHandler) GetPortalLinks ¶
func (UnimplementedOrganizationServiceHandler) GetPortalLinks(context.Context, *connect.Request[organizations.GetPortalLinkRequest]) (*connect.Response[organizations.GetPortalLinksResponse], error)
func (UnimplementedOrganizationServiceHandler) ListOrganization ¶
func (UnimplementedOrganizationServiceHandler) ListOrganization(context.Context, *connect.Request[organizations.ListOrganizationsRequest]) (*connect.Response[organizations.ListOrganizationsResponse], error)
func (UnimplementedOrganizationServiceHandler) SearchOrganization ¶
func (UnimplementedOrganizationServiceHandler) SearchOrganization(context.Context, *connect.Request[organizations.SearchOrganizationsRequest]) (*connect.Response[organizations.SearchOrganizationsResponse], error)
func (UnimplementedOrganizationServiceHandler) UpdateOrganization ¶
func (UnimplementedOrganizationServiceHandler) UpdateOrganization(context.Context, *connect.Request[organizations.UpdateOrganizationRequest]) (*connect.Response[organizations.UpdateOrganizationResponse], error)