Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterAIR ¶
type FilterAIR struct {
// contains filtered or unexported fields
}
func NewFilterAIR ¶
func NewFilterAIR(asset dia.Asset, source string, childFilter string, currentTime time.Time, memory int) *FilterAIR
NewFilterAIR returns a FilterAIR
func (*FilterAIR) FilterPointForBlock ¶
func (filter *FilterAIR) FilterPointForBlock() *dia.MetaFilterPoint
type FilterCOUNT ¶
type FilterCOUNT struct {
// contains filtered or unexported fields
}
func NewFilterCOUNT ¶
func (*FilterCOUNT) Collect ¶
func (filter *FilterCOUNT) Collect(filterPoint dia.PairFilterPoint, starttime time.Time, endtime time.Time)
func (*FilterCOUNT) FilterPointForBlock ¶
func (filter *FilterCOUNT) FilterPointForBlock() *dia.MetaFilterPoint
func (*FilterCOUNT) FinalCompute ¶
func (filter *FilterCOUNT) FinalCompute(t time.Time)
type FilterVOL ¶
type FilterVOL struct {
// contains filtered or unexported fields
}
func NewFilterVOL ¶
func (*FilterVOL) FilterPointForBlock ¶
func (filter *FilterVOL) FilterPointForBlock() *dia.MetaFilterPoint
func (*FilterVOL) FinalCompute ¶
type MetaFilter ¶
type MetaFilter interface {
// contains filtered or unexported methods
}
Filter interface defines a filter's methods processing trades from the tradesBlockService.
type MetaFilterService ¶
type MetaFilterService struct {
// contains filtered or unexported fields
}
FiltersBlockService is the data structure containing all objects necessary for the processing of a tradesBlock.
func NewMetaFilterService ¶
func NewMetaFilterService(datastore models.Datastore, chanFiltersBlock chan *dia.FiltersBlock) *MetaFilterService
NewFiltersBlockService returns a new FiltersBlockService and runs mainLoop() in a go routine.
func (*MetaFilterService) Close ¶
func (s *MetaFilterService) Close() error
Close gracefully closes the Filtersblockservice
func (*MetaFilterService) ProcessFiltersBlock ¶
func (s *MetaFilterService) ProcessFiltersBlock(filtersBlock *dia.FiltersBlock)
ProcessFiltersBlock sends a filled fitlersBlock into the filtersBlock channel.
Click to show internal directories.
Click to hide internal directories.