federationv1beta1connect

package
v1.15.0-20240212154850... Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// GraphServiceGetGraphProcedure is the fully-qualified name of the GraphService's GetGraph RPC.
	GraphServiceGetGraphProcedure = "/buf.registry.legacy.federation.v1beta1.GraphService/GetGraph"
)

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.

View Source
const (
	// GraphServiceName is the fully-qualified name of the GraphService service.
	GraphServiceName = "buf.registry.legacy.federation.v1beta1.GraphService"
)
View Source
const (
	// UploadServiceName is the fully-qualified name of the UploadService service.
	UploadServiceName = "buf.registry.legacy.federation.v1beta1.UploadService"
)
View Source
const (
	// UploadServiceUploadProcedure is the fully-qualified name of the UploadService's Upload RPC.
	UploadServiceUploadProcedure = "/buf.registry.legacy.federation.v1beta1.UploadService/Upload"
)

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.

Variables

This section is empty.

Functions

func NewGraphServiceHandler

func NewGraphServiceHandler(svc GraphServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewGraphServiceHandler 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.

func NewUploadServiceHandler

func NewUploadServiceHandler(svc UploadServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUploadServiceHandler 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 GraphServiceClient

type GraphServiceClient interface {
	// Get a dependency graph that includes the given Commits.
	//
	// Commits will be resolved via the given ResourceRefs, and all Commits will be included in the
	// graph, along with their dependencies.
	//
	// A dependency graph is a directed acyclic graph.
	//
	// See the package documentation for more details. You should likely use buf.registry.module.v1beta1
	// and not this package.
	GetGraph(context.Context, *connect.Request[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error)
}

GraphServiceClient is a client for the buf.registry.legacy.federation.v1beta1.GraphService service.

func NewGraphServiceClient

func NewGraphServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GraphServiceClient

NewGraphServiceClient constructs a client for the buf.registry.legacy.federation.v1beta1.GraphService 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 GraphServiceHandler

type GraphServiceHandler interface {
	// Get a dependency graph that includes the given Commits.
	//
	// Commits will be resolved via the given ResourceRefs, and all Commits will be included in the
	// graph, along with their dependencies.
	//
	// A dependency graph is a directed acyclic graph.
	//
	// See the package documentation for more details. You should likely use buf.registry.module.v1beta1
	// and not this package.
	GetGraph(context.Context, *connect.Request[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error)
}

GraphServiceHandler is an implementation of the buf.registry.legacy.federation.v1beta1.GraphService service.

type UnimplementedGraphServiceHandler

type UnimplementedGraphServiceHandler struct{}

UnimplementedGraphServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedGraphServiceHandler) GetGraph

type UnimplementedUploadServiceHandler

type UnimplementedUploadServiceHandler struct{}

UnimplementedUploadServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedUploadServiceHandler) Upload

type UploadServiceClient

type UploadServiceClient interface {
	// Upload contents for given set of Modules.
	//
	// Content consists of the Files: .proto files, license files, and documentation files.
	//
	// See the package documentation for more details. You should likely use buf.registry.module.v1beta1
	// and not this package.
	Upload(context.Context, *connect.Request[v1beta1.UploadRequest]) (*connect.Response[v1beta1.UploadResponse], error)
}

UploadServiceClient is a client for the buf.registry.legacy.federation.v1beta1.UploadService service.

func NewUploadServiceClient

func NewUploadServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UploadServiceClient

NewUploadServiceClient constructs a client for the buf.registry.legacy.federation.v1beta1.UploadService 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 UploadServiceHandler

type UploadServiceHandler interface {
	// Upload contents for given set of Modules.
	//
	// Content consists of the Files: .proto files, license files, and documentation files.
	//
	// See the package documentation for more details. You should likely use buf.registry.module.v1beta1
	// and not this package.
	Upload(context.Context, *connect.Request[v1beta1.UploadRequest]) (*connect.Response[v1beta1.UploadResponse], error)
}

UploadServiceHandler is an implementation of the buf.registry.legacy.federation.v1beta1.UploadService service.

Jump to

Keyboard shortcuts

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