Documentation
¶
Index ¶
Constants ¶
View Source
const ( DownSide TriggerDirection = 0 UpSide TriggerDirection = 1 LevelTrigger TriggerMethod = 0 EdgeTrigger TriggerMethod = 1 )
Variables ¶
View Source
var TypeFactoryRegister *typeFactoryRegister
Functions ¶
Types ¶
type AfterCountFunc ¶
type Aggregate ¶
type Aggregate struct {
*Counter
}
func NewAggregate ¶
func (*Aggregate) AfterCount ¶
type Counter ¶
type Counter struct {
Output chan Message
// contains filtered or unexported fields
}
func NewCounter ¶
type OutputFile ¶
type OutputFile struct {
// contains filtered or unexported fields
}
func NewOutputFile ¶
func NewOutputFile(path string) (o *OutputFile, err error)
func (*OutputFile) AfterCount ¶
func (o *OutputFile) AfterCount(msg Message) (err error)
type ThresholdTrigger ¶
type ThresholdTrigger struct {
// contains filtered or unexported fields
}
func NewThresholdTrigger ¶
func NewThresholdTrigger(alterChan chan<- uuid.UUID, threshold uint64, direction TriggerDirection, method TriggerMethod) (trigger *ThresholdTrigger)
func (*ThresholdTrigger) AfterCount ¶
func (trigger *ThresholdTrigger) AfterCount(n uint64)
type TimeWheel ¶
type TimeWheel struct {
// contains filtered or unexported fields
}
func NewSubTimeWheel ¶
func NewTimeWheel ¶
type TriggerDirection ¶
type TriggerDirection uint64
type TriggerMethod ¶
type TriggerMethod uint64
type TypeFactory ¶
type TypeFactory func() (msg Message)
type Uint64 ¶
func (*Uint64) NewCounter ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.