Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinBreakerMiddleware ¶
func GinBreakerMiddleware(logger *log.Logger) gin.HandlerFunc
GinBreakerMiddleware create a gin middleware.
func RegisterGinBreaker ¶
RegisterGinBreaker register breaker middleware based on command line parameters.
Types ¶
type BrkGetter ¶
type BrkGetter struct {
// contains filtered or unexported fields
}
BrkGetter store breaker by router and make it thread safe.
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
Option is breaker option.
type OptionFactory ¶
type OptionFactory = func() *Option
OptionFactory is breaker options factory.
func Register ¶
func Register(cmd *cobra.Command) OptionFactory
Register register breaker flags to cobra global flags.
Click to show internal directories.
Click to hide internal directories.