Documentation ¶
Index ¶
- type CosiSignature
- func (s *CosiSignature) Bytes() []byte
- func (s *CosiSignature) FromBytes(bts []byte) error
- func (s *CosiSignature) MarshalBinary() (data []byte, err error)
- func (s *CosiSignature) MarshalJSON() ([]byte, error)
- func (s *CosiSignature) Scan(value interface{}) error
- func (s *CosiSignature) String() string
- func (s *CosiSignature) UnmarshalBinary(data []byte) error
- func (s *CosiSignature) UnmarshalJSON(b []byte) error
- func (s *CosiSignature) Value() (driver.Value, error)
- type PriceData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CosiSignature ¶
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
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 (*PriceData) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.