Documentation
¶
Index ¶
- type Counter
- type Option
- func WithActions(actions map[string]events.Action) Option
- func WithDryRun(dryRun bool) Option
- func WithHumanize(humanize bool) Option
- func WithLogger(l *logger.Logger) Option
- func WithLoop(loop bool) Option
- func WithPid(pid int) Option
- func WithPollingTimeout(timeout time.Duration) Option
- func WithRoundDuration(duration time.Duration) Option
- func WithSleep(sleep time.Duration) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
sync.RWMutex
// contains filtered or unexported fields
}
Counter is a plugin that
func New ¶
func New(ctx context.Context, config *client.Config, options ...Option) (*Counter, error)
New returns a new Counter instance.
type Option ¶
type Option func(*Counter) error
Option is a functional option for extractors.
func WithActions ¶
func WithActions(actions map[string]events.Action) Option
func WithDryRun ¶ added in v0.7.0
func WithDryRun(dryRun bool) Option
func WithHumanize ¶ added in v0.6.0
func WithHumanize(humanize bool) Option
func WithLogger ¶
func WithLogger(l *logger.Logger) Option
func WithPollingTimeout ¶
func WithPollingTimeout(timeout time.Duration) Option
func WithRoundDuration ¶
func WithRoundDuration(duration time.Duration) Option
Click to show internal directories.
Click to hide internal directories.