Documentation
¶
Index ¶
- Variables
- func EncodeReportingPluginConfig(rpConfig *ReportingPluginConfigWrapper) ([]byte, error)
- type ConfigParser
- type DefaultConfigParser
- type OracleIDtoKeyShareIndex
- func (*OracleIDtoKeyShareIndex) Descriptor() ([]byte, []int)deprecated
- func (x *OracleIDtoKeyShareIndex) GetKeyShareIndex() uint32
- func (x *OracleIDtoKeyShareIndex) GetOracleId() uint32
- func (*OracleIDtoKeyShareIndex) ProtoMessage()
- func (x *OracleIDtoKeyShareIndex) ProtoReflect() protoreflect.Message
- func (x *OracleIDtoKeyShareIndex) Reset()
- func (x *OracleIDtoKeyShareIndex) String() string
- type ReportingPluginConfig
- func (*ReportingPluginConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ReportingPluginConfig) GetK() uint32
- func (x *ReportingPluginConfig) GetMaxObservationLengthBytes() uint32
- func (x *ReportingPluginConfig) GetMaxQueryLengthBytes() uint32
- func (x *ReportingPluginConfig) GetMaxReportLengthBytes() uint32
- func (x *ReportingPluginConfig) GetRequestCountLimit() uint32
- func (x *ReportingPluginConfig) GetRequestTotalBytesLimit() uint32
- func (x *ReportingPluginConfig) GetRequireLocalRequestCheck() bool
- func (*ReportingPluginConfig) ProtoMessage()
- func (x *ReportingPluginConfig) ProtoReflect() protoreflect.Message
- func (x *ReportingPluginConfig) Reset()
- func (x *ReportingPluginConfig) String() string
- type ReportingPluginConfigWrapper
Constants ¶
This section is empty.
Variables ¶
View Source
var File_config_config_types_proto protoreflect.FileDescriptor
Functions ¶
func EncodeReportingPluginConfig ¶
func EncodeReportingPluginConfig(rpConfig *ReportingPluginConfigWrapper) ([]byte, error)
Types ¶
type ConfigParser ¶
type ConfigParser interface {
ParseConfig(offchainConfig []byte) (*ReportingPluginConfigWrapper, error)
}
type DefaultConfigParser ¶
type DefaultConfigParser struct { }
func (*DefaultConfigParser) ParseConfig ¶
func (p *DefaultConfigParser) ParseConfig(offchainConfig []byte) (*ReportingPluginConfigWrapper, error)
type OracleIDtoKeyShareIndex ¶
type OracleIDtoKeyShareIndex struct { // contains filtered or unexported fields }
func (*OracleIDtoKeyShareIndex) Descriptor
deprecated
func (*OracleIDtoKeyShareIndex) Descriptor() ([]byte, []int)
Deprecated: Use OracleIDtoKeyShareIndex.ProtoReflect.Descriptor instead.
func (*OracleIDtoKeyShareIndex) GetKeyShareIndex ¶
func (x *OracleIDtoKeyShareIndex) GetKeyShareIndex() uint32
func (*OracleIDtoKeyShareIndex) GetOracleId ¶
func (x *OracleIDtoKeyShareIndex) GetOracleId() uint32
func (*OracleIDtoKeyShareIndex) ProtoMessage ¶
func (*OracleIDtoKeyShareIndex) ProtoMessage()
func (*OracleIDtoKeyShareIndex) ProtoReflect ¶
func (x *OracleIDtoKeyShareIndex) ProtoReflect() protoreflect.Message
func (*OracleIDtoKeyShareIndex) Reset ¶
func (x *OracleIDtoKeyShareIndex) Reset()
func (*OracleIDtoKeyShareIndex) String ¶
func (x *OracleIDtoKeyShareIndex) String() string
type ReportingPluginConfig ¶
type ReportingPluginConfig struct { MaxQueryLengthBytes uint32 `protobuf:"varint,1,opt,name=max_query_length_bytes,json=maxQueryLengthBytes,proto3" json:"max_query_length_bytes,omitempty"` MaxObservationLengthBytes uint32 `` /* 141-byte string literal not displayed */ MaxReportLengthBytes uint32 `` /* 126-byte string literal not displayed */ RequestCountLimit uint32 `protobuf:"varint,4,opt,name=request_count_limit,json=requestCountLimit,proto3" json:"request_count_limit,omitempty"` RequestTotalBytesLimit uint32 `` /* 132-byte string literal not displayed */ RequireLocalRequestCheck bool `` /* 138-byte string literal not displayed */ K uint32 `protobuf:"varint,7,opt,name=k,proto3" json:"k,omitempty"` // Number of decryption shares required for assembling plaintext. // contains filtered or unexported fields }
func (*ReportingPluginConfig) Descriptor
deprecated
func (*ReportingPluginConfig) Descriptor() ([]byte, []int)
Deprecated: Use ReportingPluginConfig.ProtoReflect.Descriptor instead.
func (*ReportingPluginConfig) GetK ¶
func (x *ReportingPluginConfig) GetK() uint32
func (*ReportingPluginConfig) GetMaxObservationLengthBytes ¶
func (x *ReportingPluginConfig) GetMaxObservationLengthBytes() uint32
func (*ReportingPluginConfig) GetMaxQueryLengthBytes ¶
func (x *ReportingPluginConfig) GetMaxQueryLengthBytes() uint32
func (*ReportingPluginConfig) GetMaxReportLengthBytes ¶
func (x *ReportingPluginConfig) GetMaxReportLengthBytes() uint32
func (*ReportingPluginConfig) GetRequestCountLimit ¶
func (x *ReportingPluginConfig) GetRequestCountLimit() uint32
func (*ReportingPluginConfig) GetRequestTotalBytesLimit ¶
func (x *ReportingPluginConfig) GetRequestTotalBytesLimit() uint32
func (*ReportingPluginConfig) GetRequireLocalRequestCheck ¶
func (x *ReportingPluginConfig) GetRequireLocalRequestCheck() bool
func (*ReportingPluginConfig) ProtoMessage ¶
func (*ReportingPluginConfig) ProtoMessage()
func (*ReportingPluginConfig) ProtoReflect ¶
func (x *ReportingPluginConfig) ProtoReflect() protoreflect.Message
func (*ReportingPluginConfig) Reset ¶
func (x *ReportingPluginConfig) Reset()
func (*ReportingPluginConfig) String ¶
func (x *ReportingPluginConfig) String() string
type ReportingPluginConfigWrapper ¶
type ReportingPluginConfigWrapper struct {
Config *ReportingPluginConfig
}
This config is stored in the Oracle contract (set via SetConfig()). Every SetConfig() call reloads the reporting plugin (DirectRequestReportingPluginFactory.NewReportingPlugin())
func DecodeReportingPluginConfig ¶
func DecodeReportingPluginConfig(raw []byte) (*ReportingPluginConfigWrapper, error)
Click to show internal directories.
Click to hide internal directories.