Documentation ¶
Index ¶
Constants ¶
View Source
const EventV1MessageName = "event/v1"
View Source
const PriceV0MessageName = "price/v0"
View Source
const PriceV1MessageName = "price/v1"
Variables ¶
View Source
var ( ErrPriceMessageTooLarge = errors.New("price message too large") ErrUnknownPriceMessageVersion = errors.New("unknown message version") ErrInvalidPriceMessage = errors.New("invalid price message") )
View Source
var ErrEventMessageTooLarge = errors.New("event message too large")
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 *median.Price `json:"price"` Trace json.RawMessage `json:"trace"` Version string `json:"version,omitempty"` // TODO: this should move to some meta field e.g. `feedVersion` // contains filtered or unexported fields }
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.