Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadUpgrade = errors.New("matt::chasm::source: bad upgrade") ErrBadRead = errors.New("matt::chasm::source: bad read") )
Functions ¶
This section is empty.
Types ¶
type DecodeKeyFunc ¶
TODO: we should be returning an error
type EventDecoder ¶
type KeyGetter ¶
func NewKeyGetter ¶
func NewKeyGetter(online, offline, all DecodeKeyFunc, req http.Request) KeyGetter
type Source ¶
type Source interface {
Symbol(key core.Key) Reader[core.SymbolEvent]
Book(key core.Key) Reader[core.BookEvent]
Candle(key core.Key) Reader[core.CandleEvent]
Trade(key core.Key) Reader[core.TradeEvent]
Get() KeyGetter
}
func NewSource ¶
func NewSource( origin string, symbol Proto[core.SymbolEvent], book Proto[core.BookEvent], trade Proto[core.TradeEvent], candle Proto[core.CandleEvent], getter KeyGetter, ) Source
Click to show internal directories.
Click to hide internal directories.