Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAutomationServer(s grpc.ServiceRegistrar, srv AutomationServer)
- type AutomationClient
- type AutomationServer
- type UnimplementedAutomationServer
- func (UnimplementedAutomationServer) EnqueueClusterOperation(context.Context, *v16.EnqueueClusterOperationRequest) (*v16.EnqueueClusterOperationResponse, error)
- func (UnimplementedAutomationServer) GetClusterOperationDetails(context.Context, *v16.GetClusterOperationDetailsRequest) (*v16.GetClusterOperationDetailsResponse, error)
- type UnsafeAutomationServer
Constants ¶
const ( Automation_EnqueueClusterOperation_FullMethodName = "/vitess.automationservice.v16.Automation/EnqueueClusterOperation" Automation_GetClusterOperationDetails_FullMethodName = "/vitess.automationservice.v16.Automation/GetClusterOperationDetails" )
Variables ¶
var Automation_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vitess.automationservice.v16.Automation", HandlerType: (*AutomationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "EnqueueClusterOperation", Handler: _Automation_EnqueueClusterOperation_Handler, }, { MethodName: "GetClusterOperationDetails", Handler: _Automation_GetClusterOperationDetails_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "vitess/automationservice/v16/automationservice.proto", }
Automation_ServiceDesc is the grpc.ServiceDesc for Automation service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAutomationServer ¶
func RegisterAutomationServer(s grpc.ServiceRegistrar, srv AutomationServer)
Types ¶
type AutomationClient ¶
type AutomationClient interface { // Start a cluster operation. EnqueueClusterOperation(ctx context.Context, in *v16.EnqueueClusterOperationRequest, opts ...grpc.CallOption) (*v16.EnqueueClusterOperationResponse, error) // TODO(mberlin): Polling this is bad. Implement a subscribe mechanism to wait for changes? // Get all details of an active cluster operation. GetClusterOperationDetails(ctx context.Context, in *v16.GetClusterOperationDetailsRequest, opts ...grpc.CallOption) (*v16.GetClusterOperationDetailsResponse, error) }
AutomationClient is the client API for Automation service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAutomationClient ¶
func NewAutomationClient(cc grpc.ClientConnInterface) AutomationClient
type AutomationServer ¶
type AutomationServer interface { // Start a cluster operation. EnqueueClusterOperation(context.Context, *v16.EnqueueClusterOperationRequest) (*v16.EnqueueClusterOperationResponse, error) // TODO(mberlin): Polling this is bad. Implement a subscribe mechanism to wait for changes? // Get all details of an active cluster operation. GetClusterOperationDetails(context.Context, *v16.GetClusterOperationDetailsRequest) (*v16.GetClusterOperationDetailsResponse, error) }
AutomationServer is the server API for Automation service. All implementations should embed UnimplementedAutomationServer for forward compatibility
type UnimplementedAutomationServer ¶
type UnimplementedAutomationServer struct { }
UnimplementedAutomationServer should be embedded to have forward compatible implementations.
func (UnimplementedAutomationServer) EnqueueClusterOperation ¶
func (UnimplementedAutomationServer) EnqueueClusterOperation(context.Context, *v16.EnqueueClusterOperationRequest) (*v16.EnqueueClusterOperationResponse, error)
func (UnimplementedAutomationServer) GetClusterOperationDetails ¶
func (UnimplementedAutomationServer) GetClusterOperationDetails(context.Context, *v16.GetClusterOperationDetailsRequest) (*v16.GetClusterOperationDetailsResponse, error)
type UnsafeAutomationServer ¶
type UnsafeAutomationServer interface {
// contains filtered or unexported methods
}
UnsafeAutomationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AutomationServer will result in compilation errors.