mvtxdaemon

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package mvtxdaemon is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	MonoVertexDaemonService_GetMonoVertexMetrics_FullMethodName = "/mvtxdaemon.MonoVertexDaemonService/GetMonoVertexMetrics"
	MonoVertexDaemonService_GetMonoVertexStatus_FullMethodName  = "/mvtxdaemon.MonoVertexDaemonService/GetMonoVertexStatus"
)

Variables

View Source
var File_pkg_apis_proto_mvtxdaemon_mvtxdaemon_proto protoreflect.FileDescriptor
View Source
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 (*GetMonoVertexMetricsResponse) ProtoMessage

func (*GetMonoVertexMetricsResponse) ProtoMessage()

func (*GetMonoVertexMetricsResponse) ProtoReflect

func (*GetMonoVertexMetricsResponse) Reset

func (x *GetMonoVertexMetricsResponse) Reset()

func (*GetMonoVertexMetricsResponse) 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 (*GetMonoVertexStatusResponse) ProtoMessage

func (*GetMonoVertexStatusResponse) ProtoMessage()

func (*GetMonoVertexStatusResponse) ProtoReflect

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.

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) GetMonoVertexStatus

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.

Jump to

Keyboard shortcuts

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