config

package
v0.0.0-...-579f5cf Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

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 {
	OracleId      uint32 `protobuf:"varint,1,opt,name=oracle_id,json=oracleId,proto3" json:"oracle_id,omitempty"`
	KeyShareIndex uint32 `protobuf:"varint,2,opt,name=key_share_index,json=keyShareIndex,proto3" json:"key_share_index,omitempty"`
	// 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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