Documentation ¶
Index ¶
- Constants
- func NewDomainServiceHandler(svc DomainServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type DomainServiceClient
- type DomainServiceHandler
- type UnimplementedDomainServiceHandler
- func (UnimplementedDomainServiceHandler) CreateDomain(context.Context, *connect.Request[domains.CreateDomainRequest]) (*connect.Response[domains.CreateDomainResponse], error)
- func (UnimplementedDomainServiceHandler) DeleteDomain(context.Context, *connect.Request[domains.DeleteDomainRequest]) (*connect.Response[emptypb.Empty], error)
- func (UnimplementedDomainServiceHandler) GetDomain(context.Context, *connect.Request[domains.GetDomainRequest]) (*connect.Response[domains.GetDomainResponse], error)
- func (UnimplementedDomainServiceHandler) ListAuthorizedDomains(context.Context, *connect.Request[domains.ListAuthorizedDomainRequest]) (*connect.Response[domains.ListAuthorizedDomainResponse], error)
- func (UnimplementedDomainServiceHandler) ListDomains(context.Context, *connect.Request[domains.ListDomainRequest]) (*connect.Response[domains.ListDomainResponse], error)
- func (UnimplementedDomainServiceHandler) UpdateDomain(context.Context, *connect.Request[domains.UpdateDomainRequest]) (*connect.Response[domains.UpdateDomainResponse], error)
Constants ¶
const ( // DomainServiceCreateDomainProcedure is the fully-qualified name of the DomainService's // CreateDomain RPC. DomainServiceCreateDomainProcedure = "/scalekit.v1.domains.DomainService/CreateDomain" // DomainServiceUpdateDomainProcedure is the fully-qualified name of the DomainService's // UpdateDomain RPC. DomainServiceUpdateDomainProcedure = "/scalekit.v1.domains.DomainService/UpdateDomain" // DomainServiceGetDomainProcedure is the fully-qualified name of the DomainService's GetDomain RPC. DomainServiceGetDomainProcedure = "/scalekit.v1.domains.DomainService/GetDomain" // DomainServiceDeleteDomainProcedure is the fully-qualified name of the DomainService's // DeleteDomain RPC. DomainServiceDeleteDomainProcedure = "/scalekit.v1.domains.DomainService/DeleteDomain" // DomainServiceListDomainsProcedure is the fully-qualified name of the DomainService's ListDomains // RPC. DomainServiceListDomainsProcedure = "/scalekit.v1.domains.DomainService/ListDomains" // DomainServiceListAuthorizedDomainsProcedure is the fully-qualified name of the DomainService's // ListAuthorizedDomains RPC. DomainServiceListAuthorizedDomainsProcedure = "/scalekit.v1.domains.DomainService/ListAuthorizedDomains" )
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 (
// DomainServiceName is the fully-qualified name of the DomainService service.
DomainServiceName = "scalekit.v1.domains.DomainService"
)
Variables ¶
This section is empty.
Functions ¶
func NewDomainServiceHandler ¶
func NewDomainServiceHandler(svc DomainServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewDomainServiceHandler 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 DomainServiceClient ¶
type DomainServiceClient interface { CreateDomain(context.Context, *connect.Request[domains.CreateDomainRequest]) (*connect.Response[domains.CreateDomainResponse], error) UpdateDomain(context.Context, *connect.Request[domains.UpdateDomainRequest]) (*connect.Response[domains.UpdateDomainResponse], error) GetDomain(context.Context, *connect.Request[domains.GetDomainRequest]) (*connect.Response[domains.GetDomainResponse], error) DeleteDomain(context.Context, *connect.Request[domains.DeleteDomainRequest]) (*connect.Response[emptypb.Empty], error) ListDomains(context.Context, *connect.Request[domains.ListDomainRequest]) (*connect.Response[domains.ListDomainResponse], error) ListAuthorizedDomains(context.Context, *connect.Request[domains.ListAuthorizedDomainRequest]) (*connect.Response[domains.ListAuthorizedDomainResponse], error) }
DomainServiceClient is a client for the scalekit.v1.domains.DomainService service.
func NewDomainServiceClient ¶
func NewDomainServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DomainServiceClient
NewDomainServiceClient constructs a client for the scalekit.v1.domains.DomainService 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 DomainServiceHandler ¶
type DomainServiceHandler interface { CreateDomain(context.Context, *connect.Request[domains.CreateDomainRequest]) (*connect.Response[domains.CreateDomainResponse], error) UpdateDomain(context.Context, *connect.Request[domains.UpdateDomainRequest]) (*connect.Response[domains.UpdateDomainResponse], error) GetDomain(context.Context, *connect.Request[domains.GetDomainRequest]) (*connect.Response[domains.GetDomainResponse], error) DeleteDomain(context.Context, *connect.Request[domains.DeleteDomainRequest]) (*connect.Response[emptypb.Empty], error) ListDomains(context.Context, *connect.Request[domains.ListDomainRequest]) (*connect.Response[domains.ListDomainResponse], error) ListAuthorizedDomains(context.Context, *connect.Request[domains.ListAuthorizedDomainRequest]) (*connect.Response[domains.ListAuthorizedDomainResponse], error) }
DomainServiceHandler is an implementation of the scalekit.v1.domains.DomainService service.
type UnimplementedDomainServiceHandler ¶
type UnimplementedDomainServiceHandler struct{}
UnimplementedDomainServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedDomainServiceHandler) CreateDomain ¶
func (UnimplementedDomainServiceHandler) CreateDomain(context.Context, *connect.Request[domains.CreateDomainRequest]) (*connect.Response[domains.CreateDomainResponse], error)
func (UnimplementedDomainServiceHandler) DeleteDomain ¶
func (UnimplementedDomainServiceHandler) GetDomain ¶
func (UnimplementedDomainServiceHandler) GetDomain(context.Context, *connect.Request[domains.GetDomainRequest]) (*connect.Response[domains.GetDomainResponse], error)
func (UnimplementedDomainServiceHandler) ListAuthorizedDomains ¶
func (UnimplementedDomainServiceHandler) ListAuthorizedDomains(context.Context, *connect.Request[domains.ListAuthorizedDomainRequest]) (*connect.Response[domains.ListAuthorizedDomainResponse], error)
func (UnimplementedDomainServiceHandler) ListDomains ¶
func (UnimplementedDomainServiceHandler) ListDomains(context.Context, *connect.Request[domains.ListDomainRequest]) (*connect.Response[domains.ListDomainResponse], error)
func (UnimplementedDomainServiceHandler) UpdateDomain ¶
func (UnimplementedDomainServiceHandler) UpdateDomain(context.Context, *connect.Request[domains.UpdateDomainRequest]) (*connect.Response[domains.UpdateDomainResponse], error)