dirtoracle

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CosiSignature

type CosiSignature struct {
	blst.Signature
	Mask uint64
}

func (*CosiSignature) Bytes

func (s *CosiSignature) Bytes() []byte

func (*CosiSignature) FromBytes

func (s *CosiSignature) FromBytes(bts []byte) error

func (*CosiSignature) MarshalBinary

func (s *CosiSignature) MarshalBinary() (data []byte, err error)

func (*CosiSignature) MarshalJSON

func (s *CosiSignature) MarshalJSON() ([]byte, error)

func (*CosiSignature) Scan

func (s *CosiSignature) Scan(value interface{}) error

Scan implements the sql.Scanner interface for database deserialization.

func (*CosiSignature) String

func (s *CosiSignature) String() string

func (*CosiSignature) UnmarshalBinary

func (s *CosiSignature) UnmarshalBinary(data []byte) error

func (*CosiSignature) UnmarshalJSON

func (s *CosiSignature) UnmarshalJSON(b []byte) error

func (*CosiSignature) Value

func (s *CosiSignature) Value() (driver.Value, error)

Value implements the driver.Valuer interface for database serialization.

type PriceData

type PriceData struct {
	Timestamp int64           `json:"t,omitempty"`
	AssetID   string          `json:"a,omitempty"`
	Price     decimal.Decimal `json:"p,omitempty"`
	Signature *CosiSignature  `json:"s,omitempty"`
}

func (*PriceData) MarshalBinary

func (p *PriceData) MarshalBinary() (data []byte, err error)

func (PriceData) Payload

func (p PriceData) Payload() []byte

func (*PriceData) UnmarshalBinary

func (p *PriceData) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

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