Documentation ¶
Index ¶
- Constants
- func NewCommitServiceHandler(svc CommitServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewDownloadServiceHandler(svc DownloadServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewGraphServiceHandler(svc GraphServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewLabelServiceHandler(svc LabelServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewModuleServiceHandler(svc ModuleServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewResourceServiceHandler(svc ResourceServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewUploadServiceHandler(svc UploadServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type CommitServiceClient
- type CommitServiceHandler
- type DownloadServiceClient
- type DownloadServiceHandler
- type GraphServiceClient
- type GraphServiceHandler
- type LabelServiceClient
- type LabelServiceHandler
- type ModuleServiceClient
- type ModuleServiceHandler
- type ResourceServiceClient
- type ResourceServiceHandler
- type UnimplementedCommitServiceHandler
- type UnimplementedDownloadServiceHandler
- type UnimplementedGraphServiceHandler
- type UnimplementedLabelServiceHandler
- func (UnimplementedLabelServiceHandler) ArchiveLabels(context.Context, *connect.Request[v1beta1.ArchiveLabelsRequest]) (*connect.Response[v1beta1.ArchiveLabelsResponse], error)
- func (UnimplementedLabelServiceHandler) CreateOrUpdateLabels(context.Context, *connect.Request[v1beta1.CreateOrUpdateLabelsRequest]) (*connect.Response[v1beta1.CreateOrUpdateLabelsResponse], error)
- func (UnimplementedLabelServiceHandler) GetLabels(context.Context, *connect.Request[v1beta1.GetLabelsRequest]) (*connect.Response[v1beta1.GetLabelsResponse], error)
- func (UnimplementedLabelServiceHandler) ListLabelHistory(context.Context, *connect.Request[v1beta1.ListLabelHistoryRequest]) (*connect.Response[v1beta1.ListLabelHistoryResponse], error)
- func (UnimplementedLabelServiceHandler) ListLabels(context.Context, *connect.Request[v1beta1.ListLabelsRequest]) (*connect.Response[v1beta1.ListLabelsResponse], error)
- type UnimplementedModuleServiceHandler
- func (UnimplementedModuleServiceHandler) CreateModules(context.Context, *connect.Request[v1beta1.CreateModulesRequest]) (*connect.Response[v1beta1.CreateModulesResponse], error)
- func (UnimplementedModuleServiceHandler) DeleteModules(context.Context, *connect.Request[v1beta1.DeleteModulesRequest]) (*connect.Response[v1beta1.DeleteModulesResponse], error)
- func (UnimplementedModuleServiceHandler) GetModules(context.Context, *connect.Request[v1beta1.GetModulesRequest]) (*connect.Response[v1beta1.GetModulesResponse], error)
- func (UnimplementedModuleServiceHandler) ListModules(context.Context, *connect.Request[v1beta1.ListModulesRequest]) (*connect.Response[v1beta1.ListModulesResponse], error)
- func (UnimplementedModuleServiceHandler) UpdateModules(context.Context, *connect.Request[v1beta1.UpdateModulesRequest]) (*connect.Response[v1beta1.UpdateModulesResponse], error)
- type UnimplementedResourceServiceHandler
- type UnimplementedUploadServiceHandler
- type UploadServiceClient
- type UploadServiceHandler
Constants ¶
const ( // LabelServiceGetLabelsProcedure is the fully-qualified name of the LabelService's GetLabels RPC. LabelServiceGetLabelsProcedure = "/buf.registry.module.v1beta1.LabelService/GetLabels" // LabelServiceListLabelsProcedure is the fully-qualified name of the LabelService's ListLabels RPC. LabelServiceListLabelsProcedure = "/buf.registry.module.v1beta1.LabelService/ListLabels" // LabelServiceListLabelHistoryProcedure is the fully-qualified name of the LabelService's // ListLabelHistory RPC. LabelServiceListLabelHistoryProcedure = "/buf.registry.module.v1beta1.LabelService/ListLabelHistory" // LabelServiceCreateOrUpdateLabelsProcedure is the fully-qualified name of the LabelService's // CreateOrUpdateLabels RPC. LabelServiceCreateOrUpdateLabelsProcedure = "/buf.registry.module.v1beta1.LabelService/CreateOrUpdateLabels" // LabelServiceArchiveLabelsProcedure is the fully-qualified name of the LabelService's // ArchiveLabels RPC. LabelServiceArchiveLabelsProcedure = "/buf.registry.module.v1beta1.LabelService/ArchiveLabels" )
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.
const ( // ModuleServiceGetModulesProcedure is the fully-qualified name of the ModuleService's GetModules // RPC. ModuleServiceGetModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/GetModules" // ModuleServiceListModulesProcedure is the fully-qualified name of the ModuleService's ListModules // RPC. ModuleServiceListModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/ListModules" // ModuleServiceCreateModulesProcedure is the fully-qualified name of the ModuleService's // CreateModules RPC. ModuleServiceCreateModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/CreateModules" // ModuleServiceUpdateModulesProcedure is the fully-qualified name of the ModuleService's // UpdateModules RPC. ModuleServiceUpdateModulesProcedure = "/buf.registry.module.v1beta1.ModuleService/UpdateModules" // ModuleServiceDeleteModulesProcedure is the fully-qualified name of the ModuleService's // DeleteModules RPC. ModuleServiceDeleteModulesProcedure = "/buf.registry.module.v1beta1.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.
const ( // CommitServiceGetCommitsProcedure is the fully-qualified name of the CommitService's GetCommits // RPC. CommitServiceGetCommitsProcedure = "/buf.registry.module.v1beta1.CommitService/GetCommits" )
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.
const (
// CommitServiceName is the fully-qualified name of the CommitService service.
CommitServiceName = "buf.registry.module.v1beta1.CommitService"
)
const ( // DownloadServiceDownloadProcedure is the fully-qualified name of the DownloadService's Download // RPC. DownloadServiceDownloadProcedure = "/buf.registry.module.v1beta1.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.
const (
// DownloadServiceName is the fully-qualified name of the DownloadService service.
DownloadServiceName = "buf.registry.module.v1beta1.DownloadService"
)
const (
// GraphServiceGetGraphProcedure is the fully-qualified name of the GraphService's GetGraph RPC.
GraphServiceGetGraphProcedure = "/buf.registry.module.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.
const (
// GraphServiceName is the fully-qualified name of the GraphService service.
GraphServiceName = "buf.registry.module.v1beta1.GraphService"
)
const (
// LabelServiceName is the fully-qualified name of the LabelService service.
LabelServiceName = "buf.registry.module.v1beta1.LabelService"
)
const (
// ModuleServiceName is the fully-qualified name of the ModuleService service.
ModuleServiceName = "buf.registry.module.v1beta1.ModuleService"
)
const ( // ResourceServiceGetResourcesProcedure is the fully-qualified name of the ResourceService's // GetResources RPC. ResourceServiceGetResourcesProcedure = "/buf.registry.module.v1beta1.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.
const (
// ResourceServiceName is the fully-qualified name of the ResourceService service.
ResourceServiceName = "buf.registry.module.v1beta1.ResourceService"
)
const (
// UploadServiceName is the fully-qualified name of the UploadService service.
UploadServiceName = "buf.registry.module.v1beta1.UploadService"
)
const (
// UploadServiceUploadProcedure is the fully-qualified name of the UploadService's Upload RPC.
UploadServiceUploadProcedure = "/buf.registry.module.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 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[v1beta1.GetCommitsRequest]) (*connect.Response[v1beta1.GetCommitsResponse], error) }
CommitServiceClient is a client for the buf.registry.module.v1beta1.CommitService service.
func NewCommitServiceClient ¶
func NewCommitServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CommitServiceClient
NewCommitServiceClient constructs a client for the buf.registry.module.v1beta1.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[v1beta1.GetCommitsRequest]) (*connect.Response[v1beta1.GetCommitsResponse], error) }
CommitServiceHandler is an implementation of the buf.registry.module.v1beta1.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[v1beta1.DownloadRequest]) (*connect.Response[v1beta1.DownloadResponse], error) }
DownloadServiceClient is a client for the buf.registry.module.v1beta1.DownloadService service.
func NewDownloadServiceClient ¶
func NewDownloadServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DownloadServiceClient
NewDownloadServiceClient constructs a client for the buf.registry.module.v1beta1.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[v1beta1.DownloadRequest]) (*connect.Response[v1beta1.DownloadResponse], error) }
DownloadServiceHandler is an implementation of the buf.registry.module.v1beta1.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[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error) }
GraphServiceClient is a client for the buf.registry.module.v1beta1.GraphService service.
func NewGraphServiceClient ¶
func NewGraphServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) GraphServiceClient
NewGraphServiceClient constructs a client for the buf.registry.module.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. GetGraph(context.Context, *connect.Request[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error) }
GraphServiceHandler is an implementation of the buf.registry.module.v1beta1.GraphService service.
type LabelServiceClient ¶
type LabelServiceClient interface { // Get Labels by id or name. GetLabels(context.Context, *connect.Request[v1beta1.GetLabelsRequest]) (*connect.Response[v1beta1.GetLabelsResponse], error) // List Labels for a given Module, Commit, or CommitDigest. ListLabels(context.Context, *connect.Request[v1beta1.ListLabelsRequest]) (*connect.Response[v1beta1.ListLabelsResponse], error) // List the history of a Label. ListLabelHistory(context.Context, *connect.Request[v1beta1.ListLabelHistoryRequest]) (*connect.Response[v1beta1.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[v1beta1.CreateOrUpdateLabelsRequest]) (*connect.Response[v1beta1.CreateOrUpdateLabelsResponse], error) // Archive existing Labels. // // This operation is atomic. Either all Labels are archived or an error is returned. ArchiveLabels(context.Context, *connect.Request[v1beta1.ArchiveLabelsRequest]) (*connect.Response[v1beta1.ArchiveLabelsResponse], error) }
LabelServiceClient is a client for the buf.registry.module.v1beta1.LabelService service.
func NewLabelServiceClient ¶
func NewLabelServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) LabelServiceClient
NewLabelServiceClient constructs a client for the buf.registry.module.v1beta1.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[v1beta1.GetLabelsRequest]) (*connect.Response[v1beta1.GetLabelsResponse], error) // List Labels for a given Module, Commit, or CommitDigest. ListLabels(context.Context, *connect.Request[v1beta1.ListLabelsRequest]) (*connect.Response[v1beta1.ListLabelsResponse], error) // List the history of a Label. ListLabelHistory(context.Context, *connect.Request[v1beta1.ListLabelHistoryRequest]) (*connect.Response[v1beta1.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[v1beta1.CreateOrUpdateLabelsRequest]) (*connect.Response[v1beta1.CreateOrUpdateLabelsResponse], error) // Archive existing Labels. // // This operation is atomic. Either all Labels are archived or an error is returned. ArchiveLabels(context.Context, *connect.Request[v1beta1.ArchiveLabelsRequest]) (*connect.Response[v1beta1.ArchiveLabelsResponse], error) }
LabelServiceHandler is an implementation of the buf.registry.module.v1beta1.LabelService service.
type ModuleServiceClient ¶
type ModuleServiceClient interface { // Get Modules by id or name. GetModules(context.Context, *connect.Request[v1beta1.GetModulesRequest]) (*connect.Response[v1beta1.GetModulesResponse], error) // List Modules, usually for a specific User or Organization. ListModules(context.Context, *connect.Request[v1beta1.ListModulesRequest]) (*connect.Response[v1beta1.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[v1beta1.CreateModulesRequest]) (*connect.Response[v1beta1.CreateModulesResponse], error) // Update existing Modules. // // This operation is atomic. Either all Modules are updated or an error is returned. UpdateModules(context.Context, *connect.Request[v1beta1.UpdateModulesRequest]) (*connect.Response[v1beta1.UpdateModulesResponse], error) // Delete existing Modules. // // This operation is atomic. Either all Modules are deleted or an error is returned. DeleteModules(context.Context, *connect.Request[v1beta1.DeleteModulesRequest]) (*connect.Response[v1beta1.DeleteModulesResponse], error) }
ModuleServiceClient is a client for the buf.registry.module.v1beta1.ModuleService service.
func NewModuleServiceClient ¶
func NewModuleServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ModuleServiceClient
NewModuleServiceClient constructs a client for the buf.registry.module.v1beta1.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[v1beta1.GetModulesRequest]) (*connect.Response[v1beta1.GetModulesResponse], error) // List Modules, usually for a specific User or Organization. ListModules(context.Context, *connect.Request[v1beta1.ListModulesRequest]) (*connect.Response[v1beta1.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[v1beta1.CreateModulesRequest]) (*connect.Response[v1beta1.CreateModulesResponse], error) // Update existing Modules. // // This operation is atomic. Either all Modules are updated or an error is returned. UpdateModules(context.Context, *connect.Request[v1beta1.UpdateModulesRequest]) (*connect.Response[v1beta1.UpdateModulesResponse], error) // Delete existing Modules. // // This operation is atomic. Either all Modules are deleted or an error is returned. DeleteModules(context.Context, *connect.Request[v1beta1.DeleteModulesRequest]) (*connect.Response[v1beta1.DeleteModulesResponse], error) }
ModuleServiceHandler is an implementation of the buf.registry.module.v1beta1.ModuleService service.
type ResourceServiceClient ¶
type ResourceServiceClient interface { // Get Resources. GetResources(context.Context, *connect.Request[v1beta1.GetResourcesRequest]) (*connect.Response[v1beta1.GetResourcesResponse], error) }
ResourceServiceClient is a client for the buf.registry.module.v1beta1.ResourceService service.
func NewResourceServiceClient ¶
func NewResourceServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ResourceServiceClient
NewResourceServiceClient constructs a client for the buf.registry.module.v1beta1.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[v1beta1.GetResourcesRequest]) (*connect.Response[v1beta1.GetResourcesResponse], error) }
ResourceServiceHandler is an implementation of the buf.registry.module.v1beta1.ResourceService service.
type UnimplementedCommitServiceHandler ¶
type UnimplementedCommitServiceHandler struct{}
UnimplementedCommitServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedCommitServiceHandler) GetCommits ¶
func (UnimplementedCommitServiceHandler) GetCommits(context.Context, *connect.Request[v1beta1.GetCommitsRequest]) (*connect.Response[v1beta1.GetCommitsResponse], error)
type UnimplementedDownloadServiceHandler ¶
type UnimplementedDownloadServiceHandler struct{}
UnimplementedDownloadServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedDownloadServiceHandler) Download ¶
func (UnimplementedDownloadServiceHandler) Download(context.Context, *connect.Request[v1beta1.DownloadRequest]) (*connect.Response[v1beta1.DownloadResponse], error)
type UnimplementedGraphServiceHandler ¶
type UnimplementedGraphServiceHandler struct{}
UnimplementedGraphServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedGraphServiceHandler) GetGraph ¶
func (UnimplementedGraphServiceHandler) GetGraph(context.Context, *connect.Request[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error)
type UnimplementedLabelServiceHandler ¶
type UnimplementedLabelServiceHandler struct{}
UnimplementedLabelServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedLabelServiceHandler) ArchiveLabels ¶
func (UnimplementedLabelServiceHandler) ArchiveLabels(context.Context, *connect.Request[v1beta1.ArchiveLabelsRequest]) (*connect.Response[v1beta1.ArchiveLabelsResponse], error)
func (UnimplementedLabelServiceHandler) CreateOrUpdateLabels ¶
func (UnimplementedLabelServiceHandler) CreateOrUpdateLabels(context.Context, *connect.Request[v1beta1.CreateOrUpdateLabelsRequest]) (*connect.Response[v1beta1.CreateOrUpdateLabelsResponse], error)
func (UnimplementedLabelServiceHandler) GetLabels ¶
func (UnimplementedLabelServiceHandler) GetLabels(context.Context, *connect.Request[v1beta1.GetLabelsRequest]) (*connect.Response[v1beta1.GetLabelsResponse], error)
func (UnimplementedLabelServiceHandler) ListLabelHistory ¶
func (UnimplementedLabelServiceHandler) ListLabelHistory(context.Context, *connect.Request[v1beta1.ListLabelHistoryRequest]) (*connect.Response[v1beta1.ListLabelHistoryResponse], error)
func (UnimplementedLabelServiceHandler) ListLabels ¶
func (UnimplementedLabelServiceHandler) ListLabels(context.Context, *connect.Request[v1beta1.ListLabelsRequest]) (*connect.Response[v1beta1.ListLabelsResponse], error)
type UnimplementedModuleServiceHandler ¶
type UnimplementedModuleServiceHandler struct{}
UnimplementedModuleServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedModuleServiceHandler) CreateModules ¶
func (UnimplementedModuleServiceHandler) CreateModules(context.Context, *connect.Request[v1beta1.CreateModulesRequest]) (*connect.Response[v1beta1.CreateModulesResponse], error)
func (UnimplementedModuleServiceHandler) DeleteModules ¶
func (UnimplementedModuleServiceHandler) DeleteModules(context.Context, *connect.Request[v1beta1.DeleteModulesRequest]) (*connect.Response[v1beta1.DeleteModulesResponse], error)
func (UnimplementedModuleServiceHandler) GetModules ¶
func (UnimplementedModuleServiceHandler) GetModules(context.Context, *connect.Request[v1beta1.GetModulesRequest]) (*connect.Response[v1beta1.GetModulesResponse], error)
func (UnimplementedModuleServiceHandler) ListModules ¶
func (UnimplementedModuleServiceHandler) ListModules(context.Context, *connect.Request[v1beta1.ListModulesRequest]) (*connect.Response[v1beta1.ListModulesResponse], error)
func (UnimplementedModuleServiceHandler) UpdateModules ¶
func (UnimplementedModuleServiceHandler) UpdateModules(context.Context, *connect.Request[v1beta1.UpdateModulesRequest]) (*connect.Response[v1beta1.UpdateModulesResponse], error)
type UnimplementedResourceServiceHandler ¶
type UnimplementedResourceServiceHandler struct{}
UnimplementedResourceServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedResourceServiceHandler) GetResources ¶
func (UnimplementedResourceServiceHandler) GetResources(context.Context, *connect.Request[v1beta1.GetResourcesRequest]) (*connect.Response[v1beta1.GetResourcesResponse], error)
type UnimplementedUploadServiceHandler ¶
type UnimplementedUploadServiceHandler struct{}
UnimplementedUploadServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedUploadServiceHandler) Upload ¶
func (UnimplementedUploadServiceHandler) Upload(context.Context, *connect.Request[v1beta1.UploadRequest]) (*connect.Response[v1beta1.UploadResponse], error)
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[v1beta1.UploadRequest]) (*connect.Response[v1beta1.UploadResponse], error) }
UploadServiceClient is a client for the buf.registry.module.v1beta1.UploadService service.
func NewUploadServiceClient ¶
func NewUploadServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UploadServiceClient
NewUploadServiceClient constructs a client for the buf.registry.module.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. Upload(context.Context, *connect.Request[v1beta1.UploadRequest]) (*connect.Response[v1beta1.UploadResponse], error) }
UploadServiceHandler is an implementation of the buf.registry.module.v1beta1.UploadService service.