stdcrpclongrunning

package
v0.0.265 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stdcrpclongrunning serves and calls Google's google.longrunning.Operations service (AIP-151) with connect-go v2, in the shape protoc-gen-connect-go generates for other services. buf generates only from a module's own protobuf files, and this service is Google's, defined in google/longrunning/operations.proto; its messages come from longrunningpb. The method descriptors carry that file's google.api.http annotations, so a REST transcoder such as Vanguard serves the service like any other.

Index

Constants

View Source
const (
	OperationsListOperationsProcedure  = "/google.longrunning.Operations/ListOperations"
	OperationsGetOperationProcedure    = "/google.longrunning.Operations/GetOperation"
	OperationsDeleteOperationProcedure = "/google.longrunning.Operations/DeleteOperation"
	OperationsCancelOperationProcedure = "/google.longrunning.Operations/CancelOperation"
	OperationsWaitOperationProcedure   = "/google.longrunning.Operations/WaitOperation"
)

The procedure names of the Operations service's RPCs.

View Source
const OperationsServiceName = "google.longrunning.Operations"

OperationsServiceName is the fully-qualified name of the Operations service.

Variables

This section is empty.

Functions

func RegisterOperationsHandler

func RegisterOperationsHandler(server *connect.Server, svc OperationsHandler)

RegisterOperationsHandler registers svc as the Operations implementation on server.

Types

type OperationsClient

type OperationsClient = OperationsHandler

OperationsClient is a client for the Operations service, which has the methods of OperationsHandler.

func NewOperationsClient

func NewOperationsClient(client *connect.Client) OperationsClient

NewOperationsClient constructs a client for the Operations service.

type OperationsHandler

OperationsHandler is an implementation of the Operations service. Embed UnimplementedOperationsHandler for the methods a server does not support, which then fail with UNIMPLEMENTED, as operations.proto allows for every method but GetOperation.

type UnimplementedOperationsHandler

type UnimplementedOperationsHandler struct{}

UnimplementedOperationsHandler returns UNIMPLEMENTED from every method.

func (UnimplementedOperationsHandler) CancelOperation

CancelOperation implements OperationsHandler.

func (UnimplementedOperationsHandler) DeleteOperation

DeleteOperation implements OperationsHandler.

func (UnimplementedOperationsHandler) GetOperation

GetOperation implements OperationsHandler.

func (UnimplementedOperationsHandler) ListOperations

ListOperations implements OperationsHandler.

func (UnimplementedOperationsHandler) WaitOperation

WaitOperation implements OperationsHandler.

Jump to

Keyboard shortcuts

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