Documentation ¶
Index ¶
- Constants
- func NewAggregateServiceHandler(svc AggregateServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type AggregateServiceClient
- type AggregateServiceHandler
- type UnimplementedAggregateServiceHandler
- func (UnimplementedAggregateServiceHandler) GetActiveCronAggregateBackfills(context.Context, *connect.Request[v1.GetActiveCronAggregateBackfillsRequest]) (*connect.Response[v1.GetActiveCronAggregateBackfillsResponse], error)
- func (UnimplementedAggregateServiceHandler) GetAggregateBackfillJob(context.Context, *connect.Request[v1.GetAggregateBackfillJobRequest]) (*connect.Response[v1.GetAggregateBackfillJobResponse], error)
- func (UnimplementedAggregateServiceHandler) GetAggregateBackfillJobs(context.Context, *connect.Request[v1.GetAggregateBackfillJobsRequest]) (*connect.Response[v1.GetAggregateBackfillJobsResponse], error)
- func (UnimplementedAggregateServiceHandler) GetAggregates(context.Context, *connect.Request[v1.GetAggregatesRequest]) (*connect.Response[v1.GetAggregatesResponse], error)
- func (UnimplementedAggregateServiceHandler) GetCronAggregateBackfill(context.Context, *connect.Request[v1.GetCronAggregateBackfillRequest]) (*connect.Response[v1.GetCronAggregateBackfillResponse], error)
- func (UnimplementedAggregateServiceHandler) PlanAggregateBackfill(context.Context, *connect.Request[v1.PlanAggregateBackfillRequest]) (*connect.Response[v1.PlanAggregateBackfillResponse], error)
Constants ¶
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.
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) GetActiveCronAggregateBackfills ¶ added in v0.18.22
func (UnimplementedAggregateServiceHandler) GetActiveCronAggregateBackfills(context.Context, *connect.Request[v1.GetActiveCronAggregateBackfillsRequest]) (*connect.Response[v1.GetActiveCronAggregateBackfillsResponse], error)
func (UnimplementedAggregateServiceHandler) GetAggregateBackfillJob ¶ added in v0.16.10
func (UnimplementedAggregateServiceHandler) GetAggregateBackfillJob(context.Context, *connect.Request[v1.GetAggregateBackfillJobRequest]) (*connect.Response[v1.GetAggregateBackfillJobResponse], error)
func (UnimplementedAggregateServiceHandler) GetAggregateBackfillJobs ¶ added in v0.16.10
func (UnimplementedAggregateServiceHandler) GetAggregateBackfillJobs(context.Context, *connect.Request[v1.GetAggregateBackfillJobsRequest]) (*connect.Response[v1.GetAggregateBackfillJobsResponse], error)
func (UnimplementedAggregateServiceHandler) GetAggregates ¶ added in v0.14.7
func (UnimplementedAggregateServiceHandler) GetAggregates(context.Context, *connect.Request[v1.GetAggregatesRequest]) (*connect.Response[v1.GetAggregatesResponse], error)
func (UnimplementedAggregateServiceHandler) GetCronAggregateBackfill ¶ added in v0.18.22
func (UnimplementedAggregateServiceHandler) GetCronAggregateBackfill(context.Context, *connect.Request[v1.GetCronAggregateBackfillRequest]) (*connect.Response[v1.GetCronAggregateBackfillResponse], error)
func (UnimplementedAggregateServiceHandler) PlanAggregateBackfill ¶
func (UnimplementedAggregateServiceHandler) PlanAggregateBackfill(context.Context, *connect.Request[v1.PlanAggregateBackfillRequest]) (*connect.Response[v1.PlanAggregateBackfillResponse], error)