aggregatev1connect

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AggregateServicePlanAggregateBackfillProcedure is the fully-qualified name of the
	// AggregateService's PlanAggregateBackfill RPC.
	AggregateServicePlanAggregateBackfillProcedure = "/chalk.aggregate.v1.AggregateService/PlanAggregateBackfill"
	// AggregateServiceGetAggregatesProcedure is the fully-qualified name of the AggregateService's
	// GetAggregates RPC.
	AggregateServiceGetAggregatesProcedure = "/chalk.aggregate.v1.AggregateService/GetAggregates"
	// AggregateServiceGetAggregateBackfillJobsProcedure is the fully-qualified name of the
	// AggregateService's GetAggregateBackfillJobs RPC.
	AggregateServiceGetAggregateBackfillJobsProcedure = "/chalk.aggregate.v1.AggregateService/GetAggregateBackfillJobs"
	// AggregateServiceGetAggregateBackfillJobProcedure is the fully-qualified name of the
	// AggregateService's GetAggregateBackfillJob RPC.
	AggregateServiceGetAggregateBackfillJobProcedure = "/chalk.aggregate.v1.AggregateService/GetAggregateBackfillJob"
	// AggregateServiceGetCronAggregateBackfillProcedure is the fully-qualified name of the
	// AggregateService's GetCronAggregateBackfill RPC.
	AggregateServiceGetCronAggregateBackfillProcedure = "/chalk.aggregate.v1.AggregateService/GetCronAggregateBackfill"
	// AggregateServiceGetActiveCronAggregateBackfillsProcedure is the fully-qualified name of the
	// AggregateService's GetActiveCronAggregateBackfills RPC.
	AggregateServiceGetActiveCronAggregateBackfillsProcedure = "/chalk.aggregate.v1.AggregateService/GetActiveCronAggregateBackfills"
)

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 (
	// AggregateServiceName is the fully-qualified name of the AggregateService service.
	AggregateServiceName = "chalk.aggregate.v1.AggregateService"
)

Variables

This section is empty.

Functions

func NewAggregateServiceHandler

func NewAggregateServiceHandler(svc AggregateServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAggregateServiceHandler 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 AggregateServiceClient

type AggregateServiceClient interface {
	// PlanAggregateBackfill determines the estimated resources needed to backfill
	// an aggregate.
	//
	// This method is a duplicate of the PlanAggregateBackfill method
	// in the query_server.proto file. We should remove the query_server.proto method
	// and move that request to this service instead.
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	PlanAggregateBackfill(context.Context, *connect.Request[v1.PlanAggregateBackfillRequest]) (*connect.Response[v1.PlanAggregateBackfillResponse], error)
	// This method is a duplicate of the PlanAggregateBackfill method
	// in the query_server.proto file. We should remove the query_server.proto method
	// and move that request to this service instead.
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	GetAggregates(context.Context, *connect.Request[v1.GetAggregatesRequest]) (*connect.Response[v1.GetAggregatesResponse], error)
	GetAggregateBackfillJobs(context.Context, *connect.Request[v1.GetAggregateBackfillJobsRequest]) (*connect.Response[v1.GetAggregateBackfillJobsResponse], error)
	GetAggregateBackfillJob(context.Context, *connect.Request[v1.GetAggregateBackfillJobRequest]) (*connect.Response[v1.GetAggregateBackfillJobResponse], error)
	GetCronAggregateBackfill(context.Context, *connect.Request[v1.GetCronAggregateBackfillRequest]) (*connect.Response[v1.GetCronAggregateBackfillResponse], error)
	GetActiveCronAggregateBackfills(context.Context, *connect.Request[v1.GetActiveCronAggregateBackfillsRequest]) (*connect.Response[v1.GetActiveCronAggregateBackfillsResponse], error)
}

AggregateServiceClient is a client for the chalk.aggregate.v1.AggregateService service.

func NewAggregateServiceClient

func NewAggregateServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AggregateServiceClient

NewAggregateServiceClient constructs a client for the chalk.aggregate.v1.AggregateService 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 AggregateServiceHandler

type AggregateServiceHandler interface {
	// PlanAggregateBackfill determines the estimated resources needed to backfill
	// an aggregate.
	//
	// This method is a duplicate of the PlanAggregateBackfill method
	// in the query_server.proto file. We should remove the query_server.proto method
	// and move that request to this service instead.
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	PlanAggregateBackfill(context.Context, *connect.Request[v1.PlanAggregateBackfillRequest]) (*connect.Response[v1.PlanAggregateBackfillResponse], error)
	// This method is a duplicate of the PlanAggregateBackfill method
	// in the query_server.proto file. We should remove the query_server.proto method
	// and move that request to this service instead.
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	GetAggregates(context.Context, *connect.Request[v1.GetAggregatesRequest]) (*connect.Response[v1.GetAggregatesResponse], error)
	GetAggregateBackfillJobs(context.Context, *connect.Request[v1.GetAggregateBackfillJobsRequest]) (*connect.Response[v1.GetAggregateBackfillJobsResponse], error)
	GetAggregateBackfillJob(context.Context, *connect.Request[v1.GetAggregateBackfillJobRequest]) (*connect.Response[v1.GetAggregateBackfillJobResponse], error)
	GetCronAggregateBackfill(context.Context, *connect.Request[v1.GetCronAggregateBackfillRequest]) (*connect.Response[v1.GetCronAggregateBackfillResponse], error)
	GetActiveCronAggregateBackfills(context.Context, *connect.Request[v1.GetActiveCronAggregateBackfillsRequest]) (*connect.Response[v1.GetActiveCronAggregateBackfillsResponse], error)
}

AggregateServiceHandler is an implementation of the chalk.aggregate.v1.AggregateService service.

type UnimplementedAggregateServiceHandler

type UnimplementedAggregateServiceHandler struct{}

UnimplementedAggregateServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAggregateServiceHandler) GetAggregateBackfillJob added in v0.16.10

func (UnimplementedAggregateServiceHandler) GetAggregateBackfillJobs added in v0.16.10

func (UnimplementedAggregateServiceHandler) GetAggregates added in v0.14.7

func (UnimplementedAggregateServiceHandler) GetCronAggregateBackfill added in v0.18.22

Jump to

Keyboard shortcuts

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