Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is a handler implementation to resolve optional implementations of handler.Cooler and handler.Unwrap. A worker engine may wrap its configured worker handlers within this proxy implementation in order to cover interface requirements for cases where those functions may not be implemented by the wrapped handlers.
func (*Proxy) Active ¶ added in v0.7.0
Active returns the scheduler primitive of the underlying worker handler if that handler implements the handler.Active interface. Otherwise true is returned.
func (*Proxy) Cooler ¶
Cooler returns the wait duration of the underlying worker handler if that handler implements the handler.Cooler interface. Otherwise 0 is returned.
func (*Proxy) Ensure ¶
Ensure executes the business logic of the wrapped worker handler transparently without any additional behaviour change.