Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOpenRcaServiceServer(s grpc.ServiceRegistrar, srv OpenRcaServiceServer)
- type OpenRcaServiceClient
- type OpenRcaServiceServer
- type OpenRcaService_StreamCoreMetricsClient
- type OpenRcaService_StreamCoreMetricsServer
- type OrcaLoadReportRequest
- func (*OrcaLoadReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrcaLoadReportRequest) GetReportInterval() *durationpb.Duration
- func (x *OrcaLoadReportRequest) GetRequestCostNames() []string
- func (*OrcaLoadReportRequest) ProtoMessage()
- func (x *OrcaLoadReportRequest) ProtoReflect() protoreflect.Message
- func (x *OrcaLoadReportRequest) Reset()
- func (x *OrcaLoadReportRequest) String() string
- func (m *OrcaLoadReportRequest) Validate() error
- func (m *OrcaLoadReportRequest) ValidateAll() error
- type OrcaLoadReportRequestMultiError
- type OrcaLoadReportRequestValidationError
- func (e OrcaLoadReportRequestValidationError) Cause() error
- func (e OrcaLoadReportRequestValidationError) Error() string
- func (e OrcaLoadReportRequestValidationError) ErrorName() string
- func (e OrcaLoadReportRequestValidationError) Field() string
- func (e OrcaLoadReportRequestValidationError) Key() bool
- func (e OrcaLoadReportRequestValidationError) Reason() string
- type UnimplementedOpenRcaServiceServer
- type UnsafeOpenRcaServiceServer
Constants ¶
const (
OpenRcaService_StreamCoreMetrics_FullMethodName = "/udpa.service.orca.v1.OpenRcaService/StreamCoreMetrics"
)
Variables ¶
var File_udpa_service_orca_v1_orca_proto protoreflect.FileDescriptor
var OpenRcaService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "udpa.service.orca.v1.OpenRcaService", HandlerType: (*OpenRcaServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "StreamCoreMetrics", Handler: _OpenRcaService_StreamCoreMetrics_Handler, ServerStreams: true, }, }, Metadata: "udpa/service/orca/v1/orca.proto", }
OpenRcaService_ServiceDesc is the grpc.ServiceDesc for OpenRcaService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOpenRcaServiceServer ¶
func RegisterOpenRcaServiceServer(s grpc.ServiceRegistrar, srv OpenRcaServiceServer)
Types ¶
type OpenRcaServiceClient ¶
type OpenRcaServiceClient interface {
StreamCoreMetrics(ctx context.Context, in *OrcaLoadReportRequest, opts ...grpc.CallOption) (OpenRcaService_StreamCoreMetricsClient, error)
}
OpenRcaServiceClient is the client API for OpenRcaService 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.
func NewOpenRcaServiceClient ¶
func NewOpenRcaServiceClient(cc grpc.ClientConnInterface) OpenRcaServiceClient
type OpenRcaServiceServer ¶
type OpenRcaServiceServer interface {
StreamCoreMetrics(*OrcaLoadReportRequest, OpenRcaService_StreamCoreMetricsServer) error
}
OpenRcaServiceServer is the server API for OpenRcaService service. All implementations should embed UnimplementedOpenRcaServiceServer for forward compatibility
type OpenRcaService_StreamCoreMetricsClient ¶
type OpenRcaService_StreamCoreMetricsClient interface { Recv() (*v1.OrcaLoadReport, error) grpc.ClientStream }
type OpenRcaService_StreamCoreMetricsServer ¶
type OpenRcaService_StreamCoreMetricsServer interface { Send(*v1.OrcaLoadReport) error grpc.ServerStream }
type OrcaLoadReportRequest ¶
type OrcaLoadReportRequest struct { ReportInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=report_interval,json=reportInterval,proto3" json:"report_interval,omitempty"` RequestCostNames []string `protobuf:"bytes,2,rep,name=request_cost_names,json=requestCostNames,proto3" json:"request_cost_names,omitempty"` // contains filtered or unexported fields }
func (*OrcaLoadReportRequest) Descriptor
deprecated
func (*OrcaLoadReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrcaLoadReportRequest.ProtoReflect.Descriptor instead.
func (*OrcaLoadReportRequest) GetReportInterval ¶
func (x *OrcaLoadReportRequest) GetReportInterval() *durationpb.Duration
func (*OrcaLoadReportRequest) GetRequestCostNames ¶
func (x *OrcaLoadReportRequest) GetRequestCostNames() []string
func (*OrcaLoadReportRequest) ProtoMessage ¶
func (*OrcaLoadReportRequest) ProtoMessage()
func (*OrcaLoadReportRequest) ProtoReflect ¶
func (x *OrcaLoadReportRequest) ProtoReflect() protoreflect.Message
func (*OrcaLoadReportRequest) Reset ¶
func (x *OrcaLoadReportRequest) Reset()
func (*OrcaLoadReportRequest) String ¶
func (x *OrcaLoadReportRequest) String() string
func (*OrcaLoadReportRequest) Validate ¶
func (m *OrcaLoadReportRequest) Validate() error
Validate checks the field values on OrcaLoadReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OrcaLoadReportRequest) ValidateAll ¶
func (m *OrcaLoadReportRequest) ValidateAll() error
ValidateAll checks the field values on OrcaLoadReportRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrcaLoadReportRequestMultiError, or nil if none found.
type OrcaLoadReportRequestMultiError ¶
type OrcaLoadReportRequestMultiError []error
OrcaLoadReportRequestMultiError is an error wrapping multiple validation errors returned by OrcaLoadReportRequest.ValidateAll() if the designated constraints aren't met.
func (OrcaLoadReportRequestMultiError) AllErrors ¶
func (m OrcaLoadReportRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OrcaLoadReportRequestMultiError) Error ¶
func (m OrcaLoadReportRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OrcaLoadReportRequestValidationError ¶
type OrcaLoadReportRequestValidationError struct {
// contains filtered or unexported fields
}
OrcaLoadReportRequestValidationError is the validation error returned by OrcaLoadReportRequest.Validate if the designated constraints aren't met.
func (OrcaLoadReportRequestValidationError) Cause ¶
func (e OrcaLoadReportRequestValidationError) Cause() error
Cause function returns cause value.
func (OrcaLoadReportRequestValidationError) Error ¶
func (e OrcaLoadReportRequestValidationError) Error() string
Error satisfies the builtin error interface
func (OrcaLoadReportRequestValidationError) ErrorName ¶
func (e OrcaLoadReportRequestValidationError) ErrorName() string
ErrorName returns error name.
func (OrcaLoadReportRequestValidationError) Field ¶
func (e OrcaLoadReportRequestValidationError) Field() string
Field function returns field value.
func (OrcaLoadReportRequestValidationError) Key ¶
func (e OrcaLoadReportRequestValidationError) Key() bool
Key function returns key value.
func (OrcaLoadReportRequestValidationError) Reason ¶
func (e OrcaLoadReportRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedOpenRcaServiceServer ¶
type UnimplementedOpenRcaServiceServer struct { }
UnimplementedOpenRcaServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedOpenRcaServiceServer) StreamCoreMetrics ¶
func (UnimplementedOpenRcaServiceServer) StreamCoreMetrics(*OrcaLoadReportRequest, OpenRcaService_StreamCoreMetricsServer) error
type UnsafeOpenRcaServiceServer ¶
type UnsafeOpenRcaServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOpenRcaServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OpenRcaServiceServer will result in compilation errors.