Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorListenerNoAction = errors.New("no action set in listener")
)
Functions ¶
Types ¶
type CaptureFilterFunc ¶
type CaptureFunc ¶
type CaptureFunc = ListenerFunc
type CaptureItem ¶
type CaptureItem struct {
Trigger Event `json:"trigger,omitempty"`
Transmission Capturing `json:"transmission,omitempty"`
Action CaptureFunc `json:"-"`
}
type CaptureResult ¶
type Capturer ¶
type Capturer interface {
Once(trigger Event, capture Capturing, action CaptureFunc) (chan interface{}, chan error)
Many(items ...CaptureItem) []CaptureResult
}
type Capturing ¶
type Capturing struct {
Filter CaptureFilterFunc `json:"-"`
// contains filtered or unexported fields
}
type Depository ¶
type Emission ¶
type Emission struct {
ErrorHandler ErrorHandlerFunc `json:"-"`
IgnoreStars bool `json:"ignoreStars,omitempty"`
// contains filtered or unexported fields
}
type ErrorHandlerFunc ¶
type Listener ¶
type Listener struct {
Event `json:"event,omitempty"`
Action ListenerFunc `json:"-"`
// contains filtered or unexported fields
}
type ListenerFunc ¶
Click to show internal directories.
Click to hide internal directories.