modulev1connect

package
v1.13.0-20240401180337... 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: 2

Documentation

Index

Constants

View Source
const (
	// CommitServiceGetCommitsProcedure is the fully-qualified name of the CommitService's GetCommits
	// RPC.
	CommitServiceGetCommitsProcedure = "/buf.registry.module.v1.CommitService/GetCommits"
	// CommitServiceListCommitsProcedure is the fully-qualified name of the CommitService's ListCommits
	// RPC.
	CommitServiceListCommitsProcedure = "/buf.registry.module.v1.CommitService/ListCommits"
)

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 (
	// LabelServiceGetLabelsProcedure is the fully-qualified name of the LabelService's GetLabels RPC.
	LabelServiceGetLabelsProcedure = "/buf.registry.module.v1.LabelService/GetLabels"
	// LabelServiceListLabelsProcedure is the fully-qualified name of the LabelService's ListLabels RPC.
	LabelServiceListLabelsProcedure = "/buf.registry.module.v1.LabelService/ListLabels"
	// LabelServiceListLabelHistoryProcedure is the fully-qualified name of the LabelService's
	// ListLabelHistory RPC.
	LabelServiceListLabelHistoryProcedure = "/buf.registry.module.v1.LabelService/ListLabelHistory"
	// LabelServiceCreateOrUpdateLabelsProcedure is the fully-qualified name of the LabelService's
	// CreateOrUpdateLabels RPC.
	LabelServiceCreateOrUpdateLabelsProcedure = "/buf.registry.module.v1.LabelService/CreateOrUpdateLabels"
	// LabelServiceArchiveLabelsProcedure is the fully-qualified name of the LabelService's
	// ArchiveLabels RPC.
	LabelServiceArchiveLabelsProcedure = "/buf.registry.module.v1.LabelService/ArchiveLabels"
	// LabelServiceUnarchiveLabelsProcedure is the fully-qualified name of the LabelService's
	// UnarchiveLabels RPC.
	LabelServiceUnarchiveLabelsProcedure = "/buf.registry.module.v1.LabelService/UnarchiveLabels"
)

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 (
	// ModuleServiceGetModulesProcedure is the fully-qualified name of the ModuleService's GetModules
	// RPC.
	ModuleServiceGetModulesProcedure = "/buf.registry.module.v1.ModuleService/GetModules"
	// ModuleServiceListModulesProcedure is the fully-qualified name of the ModuleService's ListModules
	// RPC.
	ModuleServiceListModulesProcedure = "/buf.registry.module.v1.ModuleService/ListModules"
	// ModuleServiceCreateModulesProcedure is the fully-qualified name of the ModuleService's
	// CreateModules RPC.
	ModuleServiceCreateModulesProcedure = "/buf.registry.module.v1.ModuleService/CreateModules"
	// ModuleServiceUpdateModulesProcedure is the fully-qualified name of the ModuleService's
	// UpdateModules RPC.
	ModuleServiceUpdateModulesProcedure = "/buf.registry.module.v1.ModuleService/UpdateModules"
	// ModuleServiceDeleteModulesProcedure is the fully-qualified name of the ModuleService's
	// DeleteModules RPC.
	ModuleServiceDeleteModulesProcedure = "/buf.registry.module.v1.ModuleService/DeleteModules"
)

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 (
	// CommitServiceName is the fully-qualified name of the CommitService service.
	CommitServiceName = "buf.registry.module.v1.CommitService"
)
View Source
const (
	// DownloadServiceDownloadProcedure is the fully-qualified name of the DownloadService's Download
	// RPC.
	DownloadServiceDownloadProcedure = "/buf.registry.module.v1.DownloadService/Download"
)

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 (
	// DownloadServiceName is the fully-qualified name of the DownloadService service.
	DownloadServiceName = "buf.registry.module.v1.DownloadService"
)
View Source
const (
	// GraphServiceGetGraphProcedure is the fully-qualified name of the GraphService's GetGraph RPC.
	GraphServiceGetGraphProcedure = "/buf.registry.module.v1.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.module.v1.GraphService"
)
View Source
const (
	// LabelServiceName is the fully-qualified name of the LabelService service.
	LabelServiceName = "buf.registry.module.v1.LabelService"
)
View Source
const (
	// ModuleServiceName is the fully-qualified name of the ModuleService service.
	ModuleServiceName = "buf.registry.module.v1.ModuleService"
)
View Source
const (
	// ResourceServiceGetResourcesProcedure is the fully-qualified name of the ResourceService's
	// GetResources RPC.
	ResourceServiceGetResourcesProcedure = "/buf.registry.module.v1.ResourceService/GetResources"
)

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 (
	// ResourceServiceName is the fully-qualified name of the ResourceService service.
	ResourceServiceName = "buf.registry.module.v1.ResourceService"
)
View Source
const (
	// UploadServiceName is the fully-qualified name of the UploadService service.
	UploadServiceName = "buf.registry.module.v1.UploadService"
)
View Source
const (
	// UploadServiceUploadProcedure is the fully-qualified name of the UploadService's Upload RPC.
	UploadServiceUploadProcedure = "/buf.registry.module.v1.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 NewCommitServiceHandler

func NewCommitServiceHandler(svc CommitServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewCommitServiceHandler 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 NewDownloadServiceHandler

func NewDownloadServiceHandler(svc DownloadServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewDownloadServiceHandler 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 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 NewLabelServiceHandler

func NewLabelServiceHandler(svc LabelServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewLabelServiceHandler 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 NewModuleServiceHandler

func NewModuleServiceHandler(svc ModuleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewModuleServiceHandler 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 NewResourceServiceHandler

func NewResourceServiceHandler(svc ResourceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewResourceServiceHandler 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 CommitServiceClient

type CommitServiceClient interface {
	// Get Commits.
	GetCommits(context.Context, *connect.Request[v1.GetCommitsRequest]) (*connect.Response[v1.GetCommitsResponse], error)
	// List Commits for a given Module, Label, or Commit.
	ListCommits(context.Context, *connect.Request[v1.ListCommitsRequest]) (*connect.Response[v1.ListCommitsResponse], error)
}

CommitServiceClient is a client for the buf.registry.module.v1.CommitService service.

func NewCommitServiceClient

func NewCommitServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CommitServiceClient

NewCommitServiceClient constructs a client for the buf.registry.module.v1.CommitService 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 CommitServiceHandler

type CommitServiceHandler interface {
	// Get Commits.
	GetCommits(context.Context, *connect.Request[v1.GetCommitsRequest]) (*connect.Response[v1.GetCommitsResponse], error)
	// List Commits for a given Module, Label, or Commit.
	ListCommits(context.Context, *connect.Request[v1.ListCommitsRequest]) (*connect.Response[v1.ListCommitsResponse], error)
}

CommitServiceHandler is an implementation of the buf.registry.module.v1.CommitService service.

type DownloadServiceClient

type DownloadServiceClient interface {
	// Download the contents of multiple Modules, Labels, or Commits.
	//
	// Content consists of the .proto files, license files, and documentation files.
	Download(context.Context, *connect.Request[v1.DownloadRequest]) (*connect.Response[v1.DownloadResponse], error)
}

DownloadServiceClient is a client for the buf.registry.module.v1.DownloadService service.

func NewDownloadServiceClient

func NewDownloadServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DownloadServiceClient

NewDownloadServiceClient constructs a client for the buf.registry.module.v1.DownloadService 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 DownloadServiceHandler

type DownloadServiceHandler interface {
	// Download the contents of multiple Modules, Labels, or Commits.
	//
	// Content consists of the .proto files, license files, and documentation files.
	Download(context.Context, *connect.Request[v1.DownloadRequest]) (*connect.Response[v1.DownloadResponse], error)
}

DownloadServiceHandler is an implementation of the buf.registry.module.v1.DownloadService service.

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.
	GetGraph(context.Context, *connect.Request[v1.GetGraphRequest]) (*connect.Response[v1.GetGraphResponse], error)
}

GraphServiceClient is a client for the buf.registry.module.v1.GraphService service.

func NewGraphServiceClient

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

NewGraphServiceClient constructs a client for the buf.registry.module.v1.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.
	GetGraph(context.Context, *connect.Request[v1.GetGraphRequest]) (*connect.Response[v1.GetGraphResponse], error)
}

GraphServiceHandler is an implementation of the buf.registry.module.v1.GraphService service.

type LabelServiceClient

type LabelServiceClient interface {
	// Get Labels by id or name.
	GetLabels(context.Context, *connect.Request[v1.GetLabelsRequest]) (*connect.Response[v1.GetLabelsResponse], error)
	// List Labels for a given Module, Commit, or CommitDigest.
	ListLabels(context.Context, *connect.Request[v1.ListLabelsRequest]) (*connect.Response[v1.ListLabelsResponse], error)
	// List the history of a Label.
	ListLabelHistory(context.Context, *connect.Request[v1.ListLabelHistoryRequest]) (*connect.Response[v1.ListLabelHistoryResponse], error)
	// Create or update Labels on a Module.
	//
	// If the Label does not exist, it will be created.
	// If the Label was archived, it will be unarchived.
	// If the Label already existed, the Commit in the request has to be newer than the Commit that
	// the Label is currently pointing to, otherwise an error is returned.
	//
	// This operation is atomic. Either all Labels are created/updated or an error is returned.
	CreateOrUpdateLabels(context.Context, *connect.Request[v1.CreateOrUpdateLabelsRequest]) (*connect.Response[v1.CreateOrUpdateLabelsResponse], error)
	// Archive existing Labels.
	//
	// This operation is atomic. Either all Labels are archived or an error is returned.
	ArchiveLabels(context.Context, *connect.Request[v1.ArchiveLabelsRequest]) (*connect.Response[v1.ArchiveLabelsResponse], error)
	// Unarchive existing Labels.
	//
	// This operation is atomic. Either all Labels are unarchived or an error is returned.
	UnarchiveLabels(context.Context, *connect.Request[v1.UnarchiveLabelsRequest]) (*connect.Response[v1.UnarchiveLabelsResponse], error)
}

LabelServiceClient is a client for the buf.registry.module.v1.LabelService service.

func NewLabelServiceClient

func NewLabelServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) LabelServiceClient

NewLabelServiceClient constructs a client for the buf.registry.module.v1.LabelService 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 LabelServiceHandler

type LabelServiceHandler interface {
	// Get Labels by id or name.
	GetLabels(context.Context, *connect.Request[v1.GetLabelsRequest]) (*connect.Response[v1.GetLabelsResponse], error)
	// List Labels for a given Module, Commit, or CommitDigest.
	ListLabels(context.Context, *connect.Request[v1.ListLabelsRequest]) (*connect.Response[v1.ListLabelsResponse], error)
	// List the history of a Label.
	ListLabelHistory(context.Context, *connect.Request[v1.ListLabelHistoryRequest]) (*connect.Response[v1.ListLabelHistoryResponse], error)
	// Create or update Labels on a Module.
	//
	// If the Label does not exist, it will be created.
	// If the Label was archived, it will be unarchived.
	// If the Label already existed, the Commit in the request has to be newer than the Commit that
	// the Label is currently pointing to, otherwise an error is returned.
	//
	// This operation is atomic. Either all Labels are created/updated or an error is returned.
	CreateOrUpdateLabels(context.Context, *connect.Request[v1.CreateOrUpdateLabelsRequest]) (*connect.Response[v1.CreateOrUpdateLabelsResponse], error)
	// Archive existing Labels.
	//
	// This operation is atomic. Either all Labels are archived or an error is returned.
	ArchiveLabels(context.Context, *connect.Request[v1.ArchiveLabelsRequest]) (*connect.Response[v1.ArchiveLabelsResponse], error)
	// Unarchive existing Labels.
	//
	// This operation is atomic. Either all Labels are unarchived or an error is returned.
	UnarchiveLabels(context.Context, *connect.Request[v1.UnarchiveLabelsRequest]) (*connect.Response[v1.UnarchiveLabelsResponse], error)
}

LabelServiceHandler is an implementation of the buf.registry.module.v1.LabelService service.

type ModuleServiceClient

type ModuleServiceClient interface {
	// Get Modules by id or name.
	GetModules(context.Context, *connect.Request[v1.GetModulesRequest]) (*connect.Response[v1.GetModulesResponse], error)
	// List Modules, usually for a specific User or Organization.
	ListModules(context.Context, *connect.Request[v1.ListModulesRequest]) (*connect.Response[v1.ListModulesResponse], error)
	// Create new Modules.
	//
	// When a Module is created, a Branch representing the release Branch
	// is created as well.
	//
	// This operation is atomic. Either all Modules are created or an error is returned.
	CreateModules(context.Context, *connect.Request[v1.CreateModulesRequest]) (*connect.Response[v1.CreateModulesResponse], error)
	// Update existing Modules.
	//
	// This operation is atomic. Either all Modules are updated or an error is returned.
	UpdateModules(context.Context, *connect.Request[v1.UpdateModulesRequest]) (*connect.Response[v1.UpdateModulesResponse], error)
	// Delete existing Modules.
	//
	// This operation is atomic. Either all Modules are deleted or an error is returned.
	DeleteModules(context.Context, *connect.Request[v1.DeleteModulesRequest]) (*connect.Response[v1.DeleteModulesResponse], error)
}

ModuleServiceClient is a client for the buf.registry.module.v1.ModuleService service.

func NewModuleServiceClient

func NewModuleServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ModuleServiceClient

NewModuleServiceClient constructs a client for the buf.registry.module.v1.ModuleService 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 ModuleServiceHandler

type ModuleServiceHandler interface {
	// Get Modules by id or name.
	GetModules(context.Context, *connect.Request[v1.GetModulesRequest]) (*connect.Response[v1.GetModulesResponse], error)
	// List Modules, usually for a specific User or Organization.
	ListModules(context.Context, *connect.Request[v1.ListModulesRequest]) (*connect.Response[v1.ListModulesResponse], error)
	// Create new Modules.
	//
	// When a Module is created, a Branch representing the release Branch
	// is created as well.
	//
	// This operation is atomic. Either all Modules are created or an error is returned.
	CreateModules(context.Context, *connect.Request[v1.CreateModulesRequest]) (*connect.Response[v1.CreateModulesResponse], error)
	// Update existing Modules.
	//
	// This operation is atomic. Either all Modules are updated or an error is returned.
	UpdateModules(context.Context, *connect.Request[v1.UpdateModulesRequest]) (*connect.Response[v1.UpdateModulesResponse], error)
	// Delete existing Modules.
	//
	// This operation is atomic. Either all Modules are deleted or an error is returned.
	DeleteModules(context.Context, *connect.Request[v1.DeleteModulesRequest]) (*connect.Response[v1.DeleteModulesResponse], error)
}

ModuleServiceHandler is an implementation of the buf.registry.module.v1.ModuleService service.

type ResourceServiceClient

type ResourceServiceClient interface {
	// Get Resources.
	GetResources(context.Context, *connect.Request[v1.GetResourcesRequest]) (*connect.Response[v1.GetResourcesResponse], error)
}

ResourceServiceClient is a client for the buf.registry.module.v1.ResourceService service.

func NewResourceServiceClient

func NewResourceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ResourceServiceClient

NewResourceServiceClient constructs a client for the buf.registry.module.v1.ResourceService 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 ResourceServiceHandler

type ResourceServiceHandler interface {
	// Get Resources.
	GetResources(context.Context, *connect.Request[v1.GetResourcesRequest]) (*connect.Response[v1.GetResourcesResponse], error)
}

ResourceServiceHandler is an implementation of the buf.registry.module.v1.ResourceService service.

type UnimplementedCommitServiceHandler

type UnimplementedCommitServiceHandler struct{}

UnimplementedCommitServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedCommitServiceHandler) GetCommits

func (UnimplementedCommitServiceHandler) ListCommits

type UnimplementedDownloadServiceHandler

type UnimplementedDownloadServiceHandler struct{}

UnimplementedDownloadServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedDownloadServiceHandler) Download

type UnimplementedGraphServiceHandler

type UnimplementedGraphServiceHandler struct{}

UnimplementedGraphServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedGraphServiceHandler) GetGraph

type UnimplementedLabelServiceHandler

type UnimplementedLabelServiceHandler struct{}

UnimplementedLabelServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedLabelServiceHandler) ArchiveLabels

func (UnimplementedLabelServiceHandler) CreateOrUpdateLabels

func (UnimplementedLabelServiceHandler) GetLabels

func (UnimplementedLabelServiceHandler) ListLabelHistory

func (UnimplementedLabelServiceHandler) ListLabels

func (UnimplementedLabelServiceHandler) UnarchiveLabels

type UnimplementedModuleServiceHandler

type UnimplementedModuleServiceHandler struct{}

UnimplementedModuleServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedModuleServiceHandler) CreateModules

func (UnimplementedModuleServiceHandler) DeleteModules

func (UnimplementedModuleServiceHandler) GetModules

func (UnimplementedModuleServiceHandler) ListModules

func (UnimplementedModuleServiceHandler) UpdateModules

type UnimplementedResourceServiceHandler

type UnimplementedResourceServiceHandler struct{}

UnimplementedResourceServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedResourceServiceHandler) GetResources

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.
	Upload(context.Context, *connect.Request[v1.UploadRequest]) (*connect.Response[v1.UploadResponse], error)
}

UploadServiceClient is a client for the buf.registry.module.v1.UploadService service.

func NewUploadServiceClient

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

NewUploadServiceClient constructs a client for the buf.registry.module.v1.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.
	Upload(context.Context, *connect.Request[v1.UploadRequest]) (*connect.Response[v1.UploadResponse], error)
}

UploadServiceHandler is an implementation of the buf.registry.module.v1.UploadService service.

Jump to

Keyboard shortcuts

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