automationservicev16grpc

package
v1.3.0-20231211191728-... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Automation_EnqueueClusterOperation_FullMethodName    = "/vitess.automationservice.v16.Automation/EnqueueClusterOperation"
	Automation_GetClusterOperationDetails_FullMethodName = "/vitess.automationservice.v16.Automation/GetClusterOperationDetails"
)

Variables

View Source
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.go.dev/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) GetClusterOperationDetails

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL