collectorv1connect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CollectorServiceGetCollectorProcedure is the fully-qualified name of the CollectorService's
	// GetCollector RPC.
	CollectorServiceGetCollectorProcedure = "/collector.v1.CollectorService/GetCollector"
	// CollectorServiceListCollectorsProcedure is the fully-qualified name of the CollectorService's
	// ListCollectors RPC.
	CollectorServiceListCollectorsProcedure = "/collector.v1.CollectorService/ListCollectors"
	// CollectorServiceCreateCollectorProcedure is the fully-qualified name of the CollectorService's
	// CreateCollector RPC.
	CollectorServiceCreateCollectorProcedure = "/collector.v1.CollectorService/CreateCollector"
	// CollectorServiceUpdateCollectorProcedure is the fully-qualified name of the CollectorService's
	// UpdateCollector RPC.
	CollectorServiceUpdateCollectorProcedure = "/collector.v1.CollectorService/UpdateCollector"
	// CollectorServiceBulkUpdateCollectorsProcedure is the fully-qualified name of the
	// CollectorService's BulkUpdateCollectors RPC.
	CollectorServiceBulkUpdateCollectorsProcedure = "/collector.v1.CollectorService/BulkUpdateCollectors"
	// CollectorServiceBulkDeleteCollectorsProcedure is the fully-qualified name of the
	// CollectorService's BulkDeleteCollectors RPC.
	CollectorServiceBulkDeleteCollectorsProcedure = "/collector.v1.CollectorService/BulkDeleteCollectors"
	// CollectorServiceDeleteCollectorProcedure is the fully-qualified name of the CollectorService's
	// DeleteCollector RPC.
	CollectorServiceDeleteCollectorProcedure = "/collector.v1.CollectorService/DeleteCollector"
	// CollectorServiceListCollectorAttributesProcedure is the fully-qualified name of the
	// CollectorService's ListCollectorAttributes RPC.
	CollectorServiceListCollectorAttributesProcedure = "/collector.v1.CollectorService/ListCollectorAttributes"
)

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 (
	// CollectorServiceName is the fully-qualified name of the CollectorService service.
	CollectorServiceName = "collector.v1.CollectorService"
)

Variables

This section is empty.

Functions

func NewCollectorServiceHandler

func NewCollectorServiceHandler(svc CollectorServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewCollectorServiceHandler 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 CollectorServiceClient

type CollectorServiceClient interface {
	// GetCollector returns information about the collector.
	GetCollector(context.Context, *connect.Request[v1.GetCollectorRequest]) (*connect.Response[v1.Collector], error)
	// ListCollectors returns information about all collectors.
	ListCollectors(context.Context, *connect.Request[v1.ListCollectorsRequest]) (*connect.Response[v1.Collectors], error)
	// CreateCollector registers a new collector.
	CreateCollector(context.Context, *connect.Request[v1.CreateCollectorRequest]) (*connect.Response[v1.Collector], error)
	// UpdateCollector updates an existing collector.
	UpdateCollector(context.Context, *connect.Request[v1.UpdateCollectorRequest]) (*connect.Response[v1.Collector], error)
	// BulkUpdateCollectors updates multiple collectors.
	BulkUpdateCollectors(context.Context, *connect.Request[v1.BulkUpdateCollectorsRequest]) (*connect.Response[v1.BulkUpdateCollectorsResponse], error)
	// BulkDeleteCollectors deletes multiple collectors.
	BulkDeleteCollectors(context.Context, *connect.Request[v1.BulkDeleteCollectorsRequest]) (*connect.Response[v1.BulkDeleteCollectorsResponse], error)
	// DeleteCollector deletes an existing collector.
	DeleteCollector(context.Context, *connect.Request[v1.DeleteCollectorRequest]) (*connect.Response[v1.DeleteCollectorResponse], error)
	// ListCollectorAttributes returns all attributes that are used for all collectors.
	ListCollectorAttributes(context.Context, *connect.Request[v1.ListCollectorAttributesRequest]) (*connect.Response[v1.ListCollectorAttributesResponse], error)
}

CollectorServiceClient is a client for the collector.v1.CollectorService service.

func NewCollectorServiceClient

func NewCollectorServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CollectorServiceClient

NewCollectorServiceClient constructs a client for the collector.v1.CollectorService 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 CollectorServiceHandler

type CollectorServiceHandler interface {
	// GetCollector returns information about the collector.
	GetCollector(context.Context, *connect.Request[v1.GetCollectorRequest]) (*connect.Response[v1.Collector], error)
	// ListCollectors returns information about all collectors.
	ListCollectors(context.Context, *connect.Request[v1.ListCollectorsRequest]) (*connect.Response[v1.Collectors], error)
	// CreateCollector registers a new collector.
	CreateCollector(context.Context, *connect.Request[v1.CreateCollectorRequest]) (*connect.Response[v1.Collector], error)
	// UpdateCollector updates an existing collector.
	UpdateCollector(context.Context, *connect.Request[v1.UpdateCollectorRequest]) (*connect.Response[v1.Collector], error)
	// BulkUpdateCollectors updates multiple collectors.
	BulkUpdateCollectors(context.Context, *connect.Request[v1.BulkUpdateCollectorsRequest]) (*connect.Response[v1.BulkUpdateCollectorsResponse], error)
	// BulkDeleteCollectors deletes multiple collectors.
	BulkDeleteCollectors(context.Context, *connect.Request[v1.BulkDeleteCollectorsRequest]) (*connect.Response[v1.BulkDeleteCollectorsResponse], error)
	// DeleteCollector deletes an existing collector.
	DeleteCollector(context.Context, *connect.Request[v1.DeleteCollectorRequest]) (*connect.Response[v1.DeleteCollectorResponse], error)
	// ListCollectorAttributes returns all attributes that are used for all collectors.
	ListCollectorAttributes(context.Context, *connect.Request[v1.ListCollectorAttributesRequest]) (*connect.Response[v1.ListCollectorAttributesResponse], error)
}

CollectorServiceHandler is an implementation of the collector.v1.CollectorService service.

type UnimplementedCollectorServiceHandler

type UnimplementedCollectorServiceHandler struct{}

UnimplementedCollectorServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedCollectorServiceHandler) CreateCollector

func (UnimplementedCollectorServiceHandler) GetCollector

func (UnimplementedCollectorServiceHandler) ListCollectors

func (UnimplementedCollectorServiceHandler) UpdateCollector

Jump to

Keyboard shortcuts

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