Documentation ¶
Index ¶
Constants ¶
View Source
const EventMessageName = "event/v0"
View Source
const PriceMessageName = "price/v0"
Variables ¶
View Source
var ErrPriceMalformedMessage = errors.New("malformed price message")
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { // Type of the event. Type string // Unique ID of the event. ID []byte // Event index used to search for events. Index []byte // The date of the event. EventDate time.Time // The date when the event message was created. MessageDate time.Time // List of event data. Data map[string][]byte // List of event signatures. Signatures map[string]EventSignature }
func (*Event) MarshallBinary ¶
MarshallBinary implements the transport.Message interface.
func (*Event) UnmarshallBinary ¶
UnmarshallBinary implements the transport.Message interface.
type EventSignature ¶ added in v0.4.2
type Price ¶
type Price struct { Price *oracle.Price `json:"price"` Trace json.RawMessage `json:"trace"` Version string `json:"version,omitempty"` }
func (*Price) MarshallBinary ¶
MarshallBinary implements the transport.Message interface.
func (*Price) Unmarshall ¶
func (*Price) UnmarshallBinary ¶
UnmarshallBinary implements the transport.Message interface.
Click to show internal directories.
Click to hide internal directories.