Documentation ¶
Index ¶
- Constants
- func NewDeploymentsServiceHandler(svc DeploymentsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type DeploymentsServiceClient
- type DeploymentsServiceHandler
- type UnimplementedDeploymentsServiceHandler
- func (UnimplementedDeploymentsServiceHandler) Activate(context.Context, *connect.Request[v1.ActivateRequest]) (*connect.Response[v1.ActivateResponse], error)
- func (UnimplementedDeploymentsServiceHandler) Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error)
- func (UnimplementedDeploymentsServiceHandler) Deactivate(context.Context, *connect.Request[v1.DeactivateRequest]) (*connect.Response[v1.DeactivateResponse], error)
- func (UnimplementedDeploymentsServiceHandler) Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error)
- func (UnimplementedDeploymentsServiceHandler) Drain(context.Context, *connect.Request[v1.DrainRequest]) (*connect.Response[v1.DrainResponse], error)
- func (UnimplementedDeploymentsServiceHandler) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
- func (UnimplementedDeploymentsServiceHandler) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
- func (UnimplementedDeploymentsServiceHandler) Test(context.Context, *connect.Request[v1.TestRequest]) (*connect.Response[v1.TestResponse], error)
Constants ¶
const ( // DeploymentsServiceCreateProcedure is the fully-qualified name of the DeploymentsService's Create // RPC. DeploymentsServiceCreateProcedure = "/autokitteh.deployments.v1.DeploymentsService/Create" // DeploymentsServiceActivateProcedure is the fully-qualified name of the DeploymentsService's // Activate RPC. DeploymentsServiceActivateProcedure = "/autokitteh.deployments.v1.DeploymentsService/Activate" // DeploymentsServiceDrainProcedure is the fully-qualified name of the DeploymentsService's Drain // RPC. DeploymentsServiceDrainProcedure = "/autokitteh.deployments.v1.DeploymentsService/Drain" // DeploymentsServiceDeactivateProcedure is the fully-qualified name of the DeploymentsService's // Deactivate RPC. DeploymentsServiceDeactivateProcedure = "/autokitteh.deployments.v1.DeploymentsService/Deactivate" // DeploymentsServiceTestProcedure is the fully-qualified name of the DeploymentsService's Test RPC. DeploymentsServiceTestProcedure = "/autokitteh.deployments.v1.DeploymentsService/Test" // DeploymentsServiceListProcedure is the fully-qualified name of the DeploymentsService's List RPC. DeploymentsServiceListProcedure = "/autokitteh.deployments.v1.DeploymentsService/List" // DeploymentsServiceGetProcedure is the fully-qualified name of the DeploymentsService's Get RPC. DeploymentsServiceGetProcedure = "/autokitteh.deployments.v1.DeploymentsService/Get" // DeploymentsServiceDeleteProcedure is the fully-qualified name of the DeploymentsService's Delete // RPC. DeploymentsServiceDeleteProcedure = "/autokitteh.deployments.v1.DeploymentsService/Delete" )
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 (
// DeploymentsServiceName is the fully-qualified name of the DeploymentsService service.
DeploymentsServiceName = "autokitteh.deployments.v1.DeploymentsService"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeploymentsServiceHandler ¶
func NewDeploymentsServiceHandler(svc DeploymentsServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewDeploymentsServiceHandler 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 DeploymentsServiceClient ¶
type DeploymentsServiceClient interface { Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error) // Activate a deployment, automatically drains all others. Activate(context.Context, *connect.Request[v1.ActivateRequest]) (*connect.Response[v1.ActivateResponse], error) // Drain a deployment. Drain(context.Context, *connect.Request[v1.DrainRequest]) (*connect.Response[v1.DrainResponse], error) // Deactivate a deployment - forcefully stops all sessions associated // with the deployment. Deactivate(context.Context, *connect.Request[v1.DeactivateRequest]) (*connect.Response[v1.DeactivateResponse], error) Test(context.Context, *connect.Request[v1.TestRequest]) (*connect.Response[v1.TestResponse], error) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error) Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error) }
DeploymentsServiceClient is a client for the autokitteh.deployments.v1.DeploymentsService service.
func NewDeploymentsServiceClient ¶
func NewDeploymentsServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DeploymentsServiceClient
NewDeploymentsServiceClient constructs a client for the autokitteh.deployments.v1.DeploymentsService 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 DeploymentsServiceHandler ¶
type DeploymentsServiceHandler interface { Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error) // Activate a deployment, automatically drains all others. Activate(context.Context, *connect.Request[v1.ActivateRequest]) (*connect.Response[v1.ActivateResponse], error) // Drain a deployment. Drain(context.Context, *connect.Request[v1.DrainRequest]) (*connect.Response[v1.DrainResponse], error) // Deactivate a deployment - forcefully stops all sessions associated // with the deployment. Deactivate(context.Context, *connect.Request[v1.DeactivateRequest]) (*connect.Response[v1.DeactivateResponse], error) Test(context.Context, *connect.Request[v1.TestRequest]) (*connect.Response[v1.TestResponse], error) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error) Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error) }
DeploymentsServiceHandler is an implementation of the autokitteh.deployments.v1.DeploymentsService service.
type UnimplementedDeploymentsServiceHandler ¶
type UnimplementedDeploymentsServiceHandler struct{}
UnimplementedDeploymentsServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedDeploymentsServiceHandler) Activate ¶
func (UnimplementedDeploymentsServiceHandler) Activate(context.Context, *connect.Request[v1.ActivateRequest]) (*connect.Response[v1.ActivateResponse], error)
func (UnimplementedDeploymentsServiceHandler) Create ¶
func (UnimplementedDeploymentsServiceHandler) Create(context.Context, *connect.Request[v1.CreateRequest]) (*connect.Response[v1.CreateResponse], error)
func (UnimplementedDeploymentsServiceHandler) Deactivate ¶
func (UnimplementedDeploymentsServiceHandler) Deactivate(context.Context, *connect.Request[v1.DeactivateRequest]) (*connect.Response[v1.DeactivateResponse], error)
func (UnimplementedDeploymentsServiceHandler) Delete ¶ added in v0.3.0
func (UnimplementedDeploymentsServiceHandler) Delete(context.Context, *connect.Request[v1.DeleteRequest]) (*connect.Response[v1.DeleteResponse], error)
func (UnimplementedDeploymentsServiceHandler) Drain ¶
func (UnimplementedDeploymentsServiceHandler) Drain(context.Context, *connect.Request[v1.DrainRequest]) (*connect.Response[v1.DrainResponse], error)
func (UnimplementedDeploymentsServiceHandler) Get ¶
func (UnimplementedDeploymentsServiceHandler) Get(context.Context, *connect.Request[v1.GetRequest]) (*connect.Response[v1.GetResponse], error)
func (UnimplementedDeploymentsServiceHandler) List ¶
func (UnimplementedDeploymentsServiceHandler) List(context.Context, *connect.Request[v1.ListRequest]) (*connect.Response[v1.ListResponse], error)
func (UnimplementedDeploymentsServiceHandler) Test ¶
func (UnimplementedDeploymentsServiceHandler) Test(context.Context, *connect.Request[v1.TestRequest]) (*connect.Response[v1.TestResponse], error)