Documentation ¶
Index ¶
- Constants
- func NewMetastoreServiceHandler(svc MetastoreServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewOperatorServiceHandler(svc OperatorServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func RegisterMetastoreServiceHandler(mux *mux.Router, svc MetastoreServiceHandler, opts ...connect.HandlerOption)
- func RegisterOperatorServiceHandler(mux *mux.Router, svc OperatorServiceHandler, opts ...connect.HandlerOption)
- type MetastoreServiceClient
- type MetastoreServiceHandler
- type OperatorServiceClient
- type OperatorServiceHandler
- type UnimplementedMetastoreServiceHandler
- func (UnimplementedMetastoreServiceHandler) AddBlock(context.Context, *connect.Request[v1.AddBlockRequest]) (*connect.Response[v1.AddBlockResponse], error)
- func (UnimplementedMetastoreServiceHandler) GetProfileStats(context.Context, *connect.Request[v1.GetProfileStatsRequest]) (*connect.Response[v11.GetProfileStatsResponse], error)
- func (UnimplementedMetastoreServiceHandler) QueryMetadata(context.Context, *connect.Request[v1.QueryMetadataRequest]) (*connect.Response[v1.QueryMetadataResponse], error)
- func (UnimplementedMetastoreServiceHandler) ReadIndex(context.Context, *connect.Request[v1.ReadIndexRequest]) (*connect.Response[v1.ReadIndexResponse], error)
- type UnimplementedOperatorServiceHandler
Constants ¶
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.
const (
// MetastoreServiceName is the fully-qualified name of the MetastoreService service.
MetastoreServiceName = "metastore.v1.MetastoreService"
)
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.
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 ¶
type MetastoreServiceClient interface { AddBlock(context.Context, *connect.Request[v1.AddBlockRequest]) (*connect.Response[v1.AddBlockResponse], error) QueryMetadata(context.Context, *connect.Request[v1.QueryMetadataRequest]) (*connect.Response[v1.QueryMetadataResponse], error) ReadIndex(context.Context, *connect.Request[v1.ReadIndexRequest]) (*connect.Response[v1.ReadIndexResponse], error) GetProfileStats(context.Context, *connect.Request[v1.GetProfileStatsRequest]) (*connect.Response[v11.GetProfileStatsResponse], error) }
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 ¶
type MetastoreServiceHandler interface { AddBlock(context.Context, *connect.Request[v1.AddBlockRequest]) (*connect.Response[v1.AddBlockResponse], error) QueryMetadata(context.Context, *connect.Request[v1.QueryMetadataRequest]) (*connect.Response[v1.QueryMetadataResponse], error) ReadIndex(context.Context, *connect.Request[v1.ReadIndexRequest]) (*connect.Response[v1.ReadIndexResponse], error) GetProfileStats(context.Context, *connect.Request[v1.GetProfileStatsRequest]) (*connect.Response[v11.GetProfileStatsResponse], error) }
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.
func (UnimplementedMetastoreServiceHandler) AddBlock ¶
func (UnimplementedMetastoreServiceHandler) AddBlock(context.Context, *connect.Request[v1.AddBlockRequest]) (*connect.Response[v1.AddBlockResponse], error)
func (UnimplementedMetastoreServiceHandler) GetProfileStats ¶
func (UnimplementedMetastoreServiceHandler) GetProfileStats(context.Context, *connect.Request[v1.GetProfileStatsRequest]) (*connect.Response[v11.GetProfileStatsResponse], error)
func (UnimplementedMetastoreServiceHandler) QueryMetadata ¶
func (UnimplementedMetastoreServiceHandler) QueryMetadata(context.Context, *connect.Request[v1.QueryMetadataRequest]) (*connect.Response[v1.QueryMetadataResponse], error)
func (UnimplementedMetastoreServiceHandler) ReadIndex ¶
func (UnimplementedMetastoreServiceHandler) ReadIndex(context.Context, *connect.Request[v1.ReadIndexRequest]) (*connect.Response[v1.ReadIndexResponse], error)
type UnimplementedOperatorServiceHandler ¶
type UnimplementedOperatorServiceHandler struct{}
UnimplementedOperatorServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedOperatorServiceHandler) Info ¶
func (UnimplementedOperatorServiceHandler) Info(context.Context, *connect.Request[v1.InfoRequest]) (*connect.Response[v1.InfoResponse], error)