package Ydb_Operation_V1

import "github.com/ydb-platform/ydb-go-genproto/Ydb_Operation_V1"

Index

Constants

const (
	OperationService_GetOperation_FullMethodName    = "/Ydb.Operation.V1.OperationService/GetOperation"
	OperationService_CancelOperation_FullMethodName = "/Ydb.Operation.V1.OperationService/CancelOperation"
	OperationService_ForgetOperation_FullMethodName = "/Ydb.Operation.V1.OperationService/ForgetOperation"
	OperationService_ListOperations_FullMethodName  = "/Ydb.Operation.V1.OperationService/ListOperations"
)

Variables

var File_ydb_operation_v1_proto protoreflect.FileDescriptor
var OperationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Ydb.Operation.V1.OperationService",
	HandlerType: (*OperationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOperation",
			Handler:    _OperationService_GetOperation_Handler,
		},
		{
			MethodName: "CancelOperation",
			Handler:    _OperationService_CancelOperation_Handler,
		},
		{
			MethodName: "ForgetOperation",
			Handler:    _OperationService_ForgetOperation_Handler,
		},
		{
			MethodName: "ListOperations",
			Handler:    _OperationService_ListOperations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ydb_operation_v1.proto",
}

OperationService_ServiceDesc is the grpc.ServiceDesc for OperationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterOperationServiceServer

func RegisterOperationServiceServer(s grpc.ServiceRegistrar, srv OperationServiceServer)

Types

type OperationServiceClient

type OperationServiceClient interface {
	// Check status for a given operation.
	GetOperation(ctx context.Context, in *Ydb_Operations.GetOperationRequest, opts ...grpc.CallOption) (*Ydb_Operations.GetOperationResponse, error)
	// Starts cancellation of a long-running operation,
	// Clients can use GetOperation to check whether the cancellation succeeded
	// or whether the operation completed despite cancellation.
	CancelOperation(ctx context.Context, in *Ydb_Operations.CancelOperationRequest, opts ...grpc.CallOption) (*Ydb_Operations.CancelOperationResponse, error)
	// Forgets long-running operation. It does not cancel the operation and returns
	// an error if operation was not completed.
	ForgetOperation(ctx context.Context, in *Ydb_Operations.ForgetOperationRequest, opts ...grpc.CallOption) (*Ydb_Operations.ForgetOperationResponse, error)
	// Lists operations that match the specified filter in the request.
	ListOperations(ctx context.Context, in *Ydb_Operations.ListOperationsRequest, opts ...grpc.CallOption) (*Ydb_Operations.ListOperationsResponse, error)
}

OperationServiceClient is the client API for OperationService 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 NewOperationServiceClient

func NewOperationServiceClient(cc grpc.ClientConnInterface) OperationServiceClient

type OperationServiceServer

type OperationServiceServer interface {
	// Check status for a given operation.
	GetOperation(context.Context, *Ydb_Operations.GetOperationRequest) (*Ydb_Operations.GetOperationResponse, error)
	// Starts cancellation of a long-running operation,
	// Clients can use GetOperation to check whether the cancellation succeeded
	// or whether the operation completed despite cancellation.
	CancelOperation(context.Context, *Ydb_Operations.CancelOperationRequest) (*Ydb_Operations.CancelOperationResponse, error)
	// Forgets long-running operation. It does not cancel the operation and returns
	// an error if operation was not completed.
	ForgetOperation(context.Context, *Ydb_Operations.ForgetOperationRequest) (*Ydb_Operations.ForgetOperationResponse, error)
	// Lists operations that match the specified filter in the request.
	ListOperations(context.Context, *Ydb_Operations.ListOperationsRequest) (*Ydb_Operations.ListOperationsResponse, error)
	// contains filtered or unexported methods
}

OperationServiceServer is the server API for OperationService service. All implementations must embed UnimplementedOperationServiceServer for forward compatibility

type UnimplementedOperationServiceServer

type UnimplementedOperationServiceServer struct {
}

UnimplementedOperationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedOperationServiceServer) CancelOperation

func (UnimplementedOperationServiceServer) ForgetOperation

func (UnimplementedOperationServiceServer) GetOperation

func (UnimplementedOperationServiceServer) ListOperations

type UnsafeOperationServiceServer

type UnsafeOperationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeOperationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OperationServiceServer will result in compilation errors.

Source Files

ydb_operation_v1.pb.go ydb_operation_v1_grpc.pb.go

Version
v0.0.0-20241112172322-ea1f63298f77 (latest)
Published
Nov 12, 2024
Platform
js/wasm
Imports
8 packages
Last checked
4 hours ago

Tools for package owners.