Documentation ¶
Index ¶
- Variables
- func SliceToByte32(slice []byte) ([32]byte, error)
- type Observation
- type ProcessedRequest
- func (*ProcessedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessedRequest) GetCallbackGasLimit() uint32
- 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
- type ReportCodec
Constants ¶
This section is empty.
Variables ¶
View Source
var File_core_services_ocr2_plugins_functions_encoding_ocr_types_proto protoreflect.FileDescriptor
Functions ¶
func SliceToByte32 ¶
Types ¶
type Observation ¶
type Observation struct { ProcessedRequests []*ProcessedRequest `protobuf:"bytes,1,rep,name=processedRequests,proto3" json:"processedRequests,omitempty"` // contains filtered or unexported fields }
func (*Observation) Descriptor
deprecated
func (*Observation) Descriptor() ([]byte, []int)
Deprecated: Use Observation.ProtoReflect.Descriptor instead.
func (*Observation) GetProcessedRequests ¶
func (x *Observation) GetProcessedRequests() []*ProcessedRequest
func (*Observation) ProtoMessage ¶
func (*Observation) ProtoMessage()
func (*Observation) ProtoReflect ¶
func (x *Observation) ProtoReflect() protoreflect.Message
func (*Observation) Reset ¶
func (x *Observation) Reset()
func (*Observation) String ¶
func (x *Observation) String() string
type ProcessedRequest ¶
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"` CallbackGasLimit uint32 `protobuf:"varint,4,opt,name=callbackGasLimit,proto3" json:"callbackGasLimit,omitempty"` // contains filtered or unexported fields }
func (*ProcessedRequest) Descriptor
deprecated
func (*ProcessedRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProcessedRequest.ProtoReflect.Descriptor instead.
func (*ProcessedRequest) GetCallbackGasLimit ¶ added in v2.4.0
func (x *ProcessedRequest) GetCallbackGasLimit() uint32
func (*ProcessedRequest) GetError ¶
func (x *ProcessedRequest) GetError() []byte
func (*ProcessedRequest) GetRequestID ¶
func (x *ProcessedRequest) GetRequestID() []byte
func (*ProcessedRequest) GetResult ¶
func (x *ProcessedRequest) GetResult() []byte
func (*ProcessedRequest) ProtoMessage ¶
func (*ProcessedRequest) ProtoMessage()
func (*ProcessedRequest) ProtoReflect ¶
func (x *ProcessedRequest) ProtoReflect() protoreflect.Message
func (*ProcessedRequest) Reset ¶
func (x *ProcessedRequest) Reset()
func (*ProcessedRequest) String ¶
func (x *ProcessedRequest) String() string
type Query ¶
type Query struct { RequestIDs [][]byte `protobuf:"bytes,1,rep,name=requestIDs,proto3" json:"requestIDs,omitempty"` // contains filtered or unexported fields }
These protos are used internally by the OCR2 reporting plugin to pass data between initial phases. Report is ABI-encoded.
func (*Query) Descriptor
deprecated
func (*Query) GetRequestIDs ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type ReportCodec ¶
type ReportCodec struct {
// contains filtered or unexported fields
}
func NewReportCodec ¶
func NewReportCodec() (*ReportCodec, error)
func (*ReportCodec) DecodeReport ¶
func (c *ReportCodec) DecodeReport(raw []byte) ([]*ProcessedRequest, error)
func (*ReportCodec) EncodeReport ¶
func (c *ReportCodec) EncodeReport(requests []*ProcessedRequest) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.