Documentation
¶
Index ¶
- Variables
- type Report
- func (*Report) Descriptor() ([]byte, []int)
- func (m *Report) GetObservationsTimestamp() int64
- func (m *Report) GetObservers() []byte
- func (m *Report) Marshal() (dAtA []byte, err error)
- func (m *Report) MarshalTo(dAtA []byte) (int, error)
- func (m *Report) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Report) ProtoMessage()
- func (m *Report) Reset()
- func (m *Report) Size() (n int)
- func (m *Report) String() string
- func (m *Report) Unmarshal(dAtA []byte) error
- func (m *Report) XXX_DiscardUnknown()
- func (m *Report) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Report) XXX_Merge(src proto.Message)
- func (m *Report) XXX_Size() int
- func (m *Report) XXX_Unmarshal(b []byte) error
- type ReportCodec
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Report ¶
type Report struct { ObservationsTimestamp int64 `protobuf:"varint,1,opt,name=observations_timestamp,json=observationsTimestamp,proto3" json:"observations_timestamp,omitempty"` Observers []byte `protobuf:"bytes,2,opt,name=observers,proto3" json:"observers,omitempty"` Observations []github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,rep,name=observations,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"observations"` }
func (*Report) Descriptor ¶
func (*Report) GetObservationsTimestamp ¶
func (*Report) GetObservers ¶
func (*Report) MarshalToSizedBuffer ¶
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) XXX_DiscardUnknown ¶
func (m *Report) XXX_DiscardUnknown()
func (*Report) XXX_Marshal ¶
func (*Report) XXX_Unmarshal ¶
type ReportCodec ¶
type ReportCodec struct{}
func (ReportCodec) BuildReport ¶
func (ReportCodec) BuildReport(observations []median.ParsedAttributedObservation) (types.Report, error)
func (ReportCodec) MedianFromReport ¶
func (ReportCodec) ParseReport ¶
func (ReportCodec) ParseReport(data []byte) (*Report, error)
Click to show internal directories.
Click to hide internal directories.