Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg Config) goresilience.Runner
New will wrap a execution unit that will cut the execution of a runner when some time passes using the context. use 0 timeout for default timeout.
func NewMiddleware ¶
func NewMiddleware(cfg Config) goresilience.Middleware
NewMiddleware returns a middleware that will cut the execution of a runner when some time passes using the context. use 0 timeout for default timeout.
Types ¶
Click to show internal directories.
Click to hide internal directories.