Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Duration ¶ added in v1.8.0
Duration is a time.Duration that reads from JSON as a duration string, so a config says "100ms" rather than 100000000. A bare number would be nanoseconds, which is a trap: "callback_wait": 100 means 100ns, not 100ms.
func (Duration) MarshalJSON ¶ added in v1.8.0
func (*Duration) UnmarshalJSON ¶ added in v1.8.0
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) CallbackWait ¶ added in v1.8.0
CallbackWait returns the delay applied before delivering a callback.
func (*Engine) QueueCallback ¶ added in v1.1.0
func (*Engine) SetCallbackWait ¶ added in v1.8.0
SetCallbackWait overrides how long the engine waits before delivering a callback. It takes effect for callbacks that have not been delivered yet, which is what lets --callback-wait win over a config file loaded before it.
Click to show internal directories.
Click to hide internal directories.