Documentation
¶
Overview ¶
Package mvtxdaemon is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterMonoVertexDaemonServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMonoVertexDaemonServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterMonoVertexDaemonServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMonoVertexDaemonServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterMonoVertexDaemonServiceServer(s grpc.ServiceRegistrar, srv MonoVertexDaemonServiceServer)
- type GetMonoVertexMetricsResponse
- func (*GetMonoVertexMetricsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMonoVertexMetricsResponse) GetMetrics() *MonoVertexMetrics
- func (*GetMonoVertexMetricsResponse) ProtoMessage()
- func (x *GetMonoVertexMetricsResponse) ProtoReflect() protoreflect.Message
- func (x *GetMonoVertexMetricsResponse) Reset()
- func (x *GetMonoVertexMetricsResponse) String() string
- type GetMonoVertexStatusResponse
- func (*GetMonoVertexStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMonoVertexStatusResponse) GetStatus() *MonoVertexStatus
- func (*GetMonoVertexStatusResponse) ProtoMessage()
- func (x *GetMonoVertexStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetMonoVertexStatusResponse) Reset()
- func (x *GetMonoVertexStatusResponse) String() string
- type MonoVertexDaemonServiceClient
- type MonoVertexDaemonServiceServer
- type MonoVertexMetrics
- func (*MonoVertexMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *MonoVertexMetrics) GetMonoVertex() string
- func (x *MonoVertexMetrics) GetPendings() map[string]*wrapperspb.Int64Value
- func (x *MonoVertexMetrics) GetProcessingRates() map[string]*wrapperspb.DoubleValue
- func (*MonoVertexMetrics) ProtoMessage()
- func (x *MonoVertexMetrics) ProtoReflect() protoreflect.Message
- func (x *MonoVertexMetrics) Reset()
- func (x *MonoVertexMetrics) String() string
- type MonoVertexStatus
- func (*MonoVertexStatus) Descriptor() ([]byte, []int)deprecated
- func (x *MonoVertexStatus) GetCode() string
- func (x *MonoVertexStatus) GetMessage() string
- func (x *MonoVertexStatus) GetStatus() string
- func (*MonoVertexStatus) ProtoMessage()
- func (x *MonoVertexStatus) ProtoReflect() protoreflect.Message
- func (x *MonoVertexStatus) Reset()
- func (x *MonoVertexStatus) String() string
- type UnimplementedMonoVertexDaemonServiceServer
- type UnsafeMonoVertexDaemonServiceServer
Constants ¶
const ( MonoVertexDaemonService_GetMonoVertexMetrics_FullMethodName = "/mvtxdaemon.MonoVertexDaemonService/GetMonoVertexMetrics" MonoVertexDaemonService_GetMonoVertexStatus_FullMethodName = "/mvtxdaemon.MonoVertexDaemonService/GetMonoVertexStatus" )
Variables ¶
var File_pkg_apis_proto_mvtxdaemon_mvtxdaemon_proto protoreflect.FileDescriptor
var MonoVertexDaemonService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mvtxdaemon.MonoVertexDaemonService", HandlerType: (*MonoVertexDaemonServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetMonoVertexMetrics", Handler: _MonoVertexDaemonService_GetMonoVertexMetrics_Handler, }, { MethodName: "GetMonoVertexStatus", Handler: _MonoVertexDaemonService_GetMonoVertexStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/apis/proto/mvtxdaemon/mvtxdaemon.proto", }
MonoVertexDaemonService_ServiceDesc is the grpc.ServiceDesc for MonoVertexDaemonService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMonoVertexDaemonServiceHandler ¶
func RegisterMonoVertexDaemonServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterMonoVertexDaemonServiceHandler registers the http handlers for service MonoVertexDaemonService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMonoVertexDaemonServiceHandlerClient ¶
func RegisterMonoVertexDaemonServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MonoVertexDaemonServiceClient) error
RegisterMonoVertexDaemonServiceHandlerClient registers the http handlers for service MonoVertexDaemonService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MonoVertexDaemonServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MonoVertexDaemonServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MonoVertexDaemonServiceClient" to call the correct interceptors.
func RegisterMonoVertexDaemonServiceHandlerFromEndpoint ¶
func RegisterMonoVertexDaemonServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMonoVertexDaemonServiceHandlerFromEndpoint is same as RegisterMonoVertexDaemonServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMonoVertexDaemonServiceHandlerServer ¶
func RegisterMonoVertexDaemonServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MonoVertexDaemonServiceServer) error
RegisterMonoVertexDaemonServiceHandlerServer registers the http handlers for service MonoVertexDaemonService to "mux". UnaryRPC :call MonoVertexDaemonServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMonoVertexDaemonServiceHandlerFromEndpoint instead.
func RegisterMonoVertexDaemonServiceServer ¶
func RegisterMonoVertexDaemonServiceServer(s grpc.ServiceRegistrar, srv MonoVertexDaemonServiceServer)
Types ¶
type GetMonoVertexMetricsResponse ¶
type GetMonoVertexMetricsResponse struct { Metrics *MonoVertexMetrics `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
func (*GetMonoVertexMetricsResponse) Descriptor
deprecated
func (*GetMonoVertexMetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMonoVertexMetricsResponse.ProtoReflect.Descriptor instead.
func (*GetMonoVertexMetricsResponse) GetMetrics ¶
func (x *GetMonoVertexMetricsResponse) GetMetrics() *MonoVertexMetrics
func (*GetMonoVertexMetricsResponse) ProtoMessage ¶
func (*GetMonoVertexMetricsResponse) ProtoMessage()
func (*GetMonoVertexMetricsResponse) ProtoReflect ¶
func (x *GetMonoVertexMetricsResponse) ProtoReflect() protoreflect.Message
func (*GetMonoVertexMetricsResponse) Reset ¶
func (x *GetMonoVertexMetricsResponse) Reset()
func (*GetMonoVertexMetricsResponse) String ¶
func (x *GetMonoVertexMetricsResponse) String() string
type GetMonoVertexStatusResponse ¶
type GetMonoVertexStatusResponse struct { Status *MonoVertexStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetMonoVertexStatusResponse) Descriptor
deprecated
func (*GetMonoVertexStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMonoVertexStatusResponse.ProtoReflect.Descriptor instead.
func (*GetMonoVertexStatusResponse) GetStatus ¶
func (x *GetMonoVertexStatusResponse) GetStatus() *MonoVertexStatus
func (*GetMonoVertexStatusResponse) ProtoMessage ¶
func (*GetMonoVertexStatusResponse) ProtoMessage()
func (*GetMonoVertexStatusResponse) ProtoReflect ¶
func (x *GetMonoVertexStatusResponse) ProtoReflect() protoreflect.Message
func (*GetMonoVertexStatusResponse) Reset ¶
func (x *GetMonoVertexStatusResponse) Reset()
func (*GetMonoVertexStatusResponse) String ¶
func (x *GetMonoVertexStatusResponse) String() string
type MonoVertexDaemonServiceClient ¶
type MonoVertexDaemonServiceClient interface { GetMonoVertexMetrics(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMonoVertexMetricsResponse, error) GetMonoVertexStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMonoVertexStatusResponse, error) }
MonoVertexDaemonServiceClient is the client API for MonoVertexDaemonService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
MonoVertexDaemonService is a grpc service that is used to provide APIs for giving any MonoVertex information.
func NewMonoVertexDaemonServiceClient ¶
func NewMonoVertexDaemonServiceClient(cc grpc.ClientConnInterface) MonoVertexDaemonServiceClient
type MonoVertexDaemonServiceServer ¶
type MonoVertexDaemonServiceServer interface { GetMonoVertexMetrics(context.Context, *emptypb.Empty) (*GetMonoVertexMetricsResponse, error) GetMonoVertexStatus(context.Context, *emptypb.Empty) (*GetMonoVertexStatusResponse, error) // contains filtered or unexported methods }
MonoVertexDaemonServiceServer is the server API for MonoVertexDaemonService service. All implementations must embed UnimplementedMonoVertexDaemonServiceServer for forward compatibility
MonoVertexDaemonService is a grpc service that is used to provide APIs for giving any MonoVertex information.
type MonoVertexMetrics ¶
type MonoVertexMetrics struct { MonoVertex string `protobuf:"bytes,1,opt,name=monoVertex,proto3" json:"monoVertex,omitempty"` // Processing rate in the past period of time, 1m, 5m, 15m, default ProcessingRates map[string]*wrapperspb.DoubleValue `` /* 171-byte string literal not displayed */ // Pending in the past period of time, 1m, 5m, 15m, default Pendings map[string]*wrapperspb.Int64Value `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
MonoVertexMetrics is used to provide information about the mono vertex including processing rate.
func (*MonoVertexMetrics) Descriptor
deprecated
func (*MonoVertexMetrics) Descriptor() ([]byte, []int)
Deprecated: Use MonoVertexMetrics.ProtoReflect.Descriptor instead.
func (*MonoVertexMetrics) GetMonoVertex ¶
func (x *MonoVertexMetrics) GetMonoVertex() string
func (*MonoVertexMetrics) GetPendings ¶
func (x *MonoVertexMetrics) GetPendings() map[string]*wrapperspb.Int64Value
func (*MonoVertexMetrics) GetProcessingRates ¶
func (x *MonoVertexMetrics) GetProcessingRates() map[string]*wrapperspb.DoubleValue
func (*MonoVertexMetrics) ProtoMessage ¶
func (*MonoVertexMetrics) ProtoMessage()
func (*MonoVertexMetrics) ProtoReflect ¶
func (x *MonoVertexMetrics) ProtoReflect() protoreflect.Message
func (*MonoVertexMetrics) Reset ¶
func (x *MonoVertexMetrics) Reset()
func (*MonoVertexMetrics) String ¶
func (x *MonoVertexMetrics) String() string
type MonoVertexStatus ¶
type MonoVertexStatus struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
MonoVertexStatus is used to provide information about the mono vertex status.
func (*MonoVertexStatus) Descriptor
deprecated
func (*MonoVertexStatus) Descriptor() ([]byte, []int)
Deprecated: Use MonoVertexStatus.ProtoReflect.Descriptor instead.
func (*MonoVertexStatus) GetCode ¶
func (x *MonoVertexStatus) GetCode() string
func (*MonoVertexStatus) GetMessage ¶
func (x *MonoVertexStatus) GetMessage() string
func (*MonoVertexStatus) GetStatus ¶
func (x *MonoVertexStatus) GetStatus() string
func (*MonoVertexStatus) ProtoMessage ¶
func (*MonoVertexStatus) ProtoMessage()
func (*MonoVertexStatus) ProtoReflect ¶
func (x *MonoVertexStatus) ProtoReflect() protoreflect.Message
func (*MonoVertexStatus) Reset ¶
func (x *MonoVertexStatus) Reset()
func (*MonoVertexStatus) String ¶
func (x *MonoVertexStatus) String() string
type UnimplementedMonoVertexDaemonServiceServer ¶
type UnimplementedMonoVertexDaemonServiceServer struct { }
UnimplementedMonoVertexDaemonServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMonoVertexDaemonServiceServer) GetMonoVertexMetrics ¶
func (UnimplementedMonoVertexDaemonServiceServer) GetMonoVertexMetrics(context.Context, *emptypb.Empty) (*GetMonoVertexMetricsResponse, error)
func (UnimplementedMonoVertexDaemonServiceServer) GetMonoVertexStatus ¶
func (UnimplementedMonoVertexDaemonServiceServer) GetMonoVertexStatus(context.Context, *emptypb.Empty) (*GetMonoVertexStatusResponse, error)
type UnsafeMonoVertexDaemonServiceServer ¶
type UnsafeMonoVertexDaemonServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMonoVertexDaemonServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MonoVertexDaemonServiceServer will result in compilation errors.