metastorev1connect

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetastoreServiceAddBlockProcedure is the fully-qualified name of the MetastoreService's AddBlock
	// RPC.
	MetastoreServiceAddBlockProcedure = "/metastore.v1.MetastoreService/AddBlock"
	// MetastoreServiceQueryMetadataProcedure is the fully-qualified name of the MetastoreService's
	// QueryMetadata RPC.
	MetastoreServiceQueryMetadataProcedure = "/metastore.v1.MetastoreService/QueryMetadata"
	// MetastoreServiceReadIndexProcedure is the fully-qualified name of the MetastoreService's
	// ReadIndex RPC.
	MetastoreServiceReadIndexProcedure = "/metastore.v1.MetastoreService/ReadIndex"
	// MetastoreServiceGetProfileStatsProcedure is the fully-qualified name of the MetastoreService's
	// GetProfileStats RPC.
	MetastoreServiceGetProfileStatsProcedure = "/metastore.v1.MetastoreService/GetProfileStats"
)

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 (
	// MetastoreServiceName is the fully-qualified name of the MetastoreService service.
	MetastoreServiceName = "metastore.v1.MetastoreService"
)
View Source
const (
	// OperatorServiceInfoProcedure is the fully-qualified name of the OperatorService's Info RPC.
	OperatorServiceInfoProcedure = "/metastore.v1.OperatorService/Info"
)

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 (
	// OperatorServiceName is the fully-qualified name of the OperatorService service.
	OperatorServiceName = "metastore.v1.OperatorService"
)

Variables

This section is empty.

Functions

func NewMetastoreServiceHandler

func NewMetastoreServiceHandler(svc MetastoreServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewMetastoreServiceHandler 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 NewOperatorServiceHandler

func NewOperatorServiceHandler(svc OperatorServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewOperatorServiceHandler 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 RegisterMetastoreServiceHandler

func RegisterMetastoreServiceHandler(mux *mux.Router, svc MetastoreServiceHandler, opts ...connect.HandlerOption)

RegisterMetastoreServiceHandler register an HTTP handler to a mux.Router from the service implementation.

func RegisterOperatorServiceHandler

func RegisterOperatorServiceHandler(mux *mux.Router, svc OperatorServiceHandler, opts ...connect.HandlerOption)

RegisterOperatorServiceHandler register an HTTP handler to a mux.Router from the service implementation.

Types

type MetastoreServiceClient

MetastoreServiceClient is a client for the metastore.v1.MetastoreService service.

func NewMetastoreServiceClient

func NewMetastoreServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) MetastoreServiceClient

NewMetastoreServiceClient constructs a client for the metastore.v1.MetastoreService 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 MetastoreServiceHandler

MetastoreServiceHandler is an implementation of the metastore.v1.MetastoreService service.

type OperatorServiceClient

type OperatorServiceClient interface {
	Info(context.Context, *connect.Request[v1.InfoRequest]) (*connect.Response[v1.InfoResponse], error)
}

OperatorServiceClient is a client for the metastore.v1.OperatorService service.

func NewOperatorServiceClient

func NewOperatorServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OperatorServiceClient

NewOperatorServiceClient constructs a client for the metastore.v1.OperatorService 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 OperatorServiceHandler

type OperatorServiceHandler interface {
	Info(context.Context, *connect.Request[v1.InfoRequest]) (*connect.Response[v1.InfoResponse], error)
}

OperatorServiceHandler is an implementation of the metastore.v1.OperatorService service.

type UnimplementedMetastoreServiceHandler

type UnimplementedMetastoreServiceHandler struct{}

UnimplementedMetastoreServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedOperatorServiceHandler

type UnimplementedOperatorServiceHandler struct{}

UnimplementedOperatorServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedOperatorServiceHandler) Info

Jump to

Keyboard shortcuts

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