Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CircuitBreak ¶
func CircuitBreak(cb CircuitBreaker, opts ...Option) middleware.Middleware
CircuitBreak returns a circuit break middleware.
Types ¶
type CircuitBreaker ¶
type Option ¶
type Option func(*options)
Option is a function that configures the middleware.
func WithHandler ¶
func WithHandler(h middleware.Handler) Option
WithHandler returns a new Option that sets the handler.
func WithLogger ¶
WithLogger returns a new Option that sets the logger.
Click to show internal directories.
Click to hide internal directories.