Documentation ¶
Index ¶
- Variables
- func CanAggregate(N int, F int, observations []*ProcessedRequest) bool
- func NewReportCodec() (*reportCodec, error)
- type DROracle
- type DirectRequestReportingPluginFactory
- type Observation
- type ProcessedRequest
- func (*ProcessedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessedRequest) GetError() []byte
- func (x *ProcessedRequest) GetRequestID() []byte
- func (x *ProcessedRequest) GetResult() []byte
- func (*ProcessedRequest) ProtoMessage()
- func (x *ProcessedRequest) ProtoReflect() protoreflect.Message
- func (x *ProcessedRequest) Reset()
- func (x *ProcessedRequest) String() string
- type Query
Constants ¶
This section is empty.
Variables ¶
View Source
var File_core_services_ocr2_plugins_directrequestocr_types_proto protoreflect.FileDescriptor
Functions ¶
func CanAggregate ¶ added in v1.11.0
func CanAggregate(N int, F int, observations []*ProcessedRequest) bool
func NewReportCodec ¶ added in v1.11.0
func NewReportCodec() (*reportCodec, error)
Types ¶
type DROracle ¶
type DROracle struct {
// contains filtered or unexported fields
}
func NewDROracle ¶
func (*DROracle) GetPluginFactory ¶
func (o *DROracle) GetPluginFactory() (ocr2types.ReportingPluginFactory, error)
func (*DROracle) GetServices ¶
func (o *DROracle) GetServices() ([]job.ServiceCtx, error)
type DirectRequestReportingPluginFactory ¶ added in v1.11.0
type DirectRequestReportingPluginFactory struct { Logger commontypes.Logger PluginORM directrequestocr.ORM JobID uuid.UUID }
func (DirectRequestReportingPluginFactory) NewReportingPlugin ¶ added in v1.11.0
func (f DirectRequestReportingPluginFactory) NewReportingPlugin(rpConfig types.ReportingPluginConfig) (types.ReportingPlugin, types.ReportingPluginInfo, error)
NewReportingPlugin complies with ReportingPluginFactory
type Observation ¶ added in v1.11.0
type Observation struct { ProcessedRequests []*ProcessedRequest `protobuf:"bytes,1,rep,name=processedRequests,proto3" json:"processedRequests,omitempty"` // contains filtered or unexported fields }
func (*Observation) Descriptor
deprecated
added in
v1.11.0
func (*Observation) Descriptor() ([]byte, []int)
Deprecated: Use Observation.ProtoReflect.Descriptor instead.
func (*Observation) GetProcessedRequests ¶ added in v1.11.0
func (x *Observation) GetProcessedRequests() []*ProcessedRequest
func (*Observation) ProtoMessage ¶ added in v1.11.0
func (*Observation) ProtoMessage()
func (*Observation) ProtoReflect ¶ added in v1.11.0
func (x *Observation) ProtoReflect() protoreflect.Message
func (*Observation) Reset ¶ added in v1.11.0
func (x *Observation) Reset()
func (*Observation) String ¶ added in v1.11.0
func (x *Observation) String() string
type ProcessedRequest ¶ added in v1.11.0
type ProcessedRequest struct { RequestID []byte `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` Result []byte `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` Error []byte `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func Aggregate ¶ added in v1.11.0
func Aggregate(aggMethod config.AggregationMethod, observations []*ProcessedRequest) (*ProcessedRequest, error)
func (*ProcessedRequest) Descriptor
deprecated
added in
v1.11.0
func (*ProcessedRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProcessedRequest.ProtoReflect.Descriptor instead.
func (*ProcessedRequest) GetError ¶ added in v1.11.0
func (x *ProcessedRequest) GetError() []byte
func (*ProcessedRequest) GetRequestID ¶ added in v1.11.0
func (x *ProcessedRequest) GetRequestID() []byte
func (*ProcessedRequest) GetResult ¶ added in v1.11.0
func (x *ProcessedRequest) GetResult() []byte
func (*ProcessedRequest) ProtoMessage ¶ added in v1.11.0
func (*ProcessedRequest) ProtoMessage()
func (*ProcessedRequest) ProtoReflect ¶ added in v1.11.0
func (x *ProcessedRequest) ProtoReflect() protoreflect.Message
func (*ProcessedRequest) Reset ¶ added in v1.11.0
func (x *ProcessedRequest) Reset()
func (*ProcessedRequest) String ¶ added in v1.11.0
func (x *ProcessedRequest) String() string
type Query ¶ added in v1.11.0
type Query struct { RequestIDs [][]byte `protobuf:"bytes,1,rep,name=requestIDs,proto3" json:"requestIDs,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
added in
v1.11.0
func (*Query) GetRequestIDs ¶ added in v1.11.0
func (*Query) ProtoMessage ¶ added in v1.11.0
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶ added in v1.11.0
func (x *Query) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.