Documentation
¶
Overview ¶
Copyright 2022 GoFast Author(http://chende.ren). All rights reserved. Use of this source code is governed by a MIT license
Copyright 2022 GoFast Author(http://chende.ren). All rights reserved. Use of this source code is governed by a MIT license
Copyright 2022 GoFast Author(http://chende.ren). All rights reserved. Use of this source code is governed by a MIT license
Copyright 2022 GoFast Author(http://chende.ren). All rights reserved. Use of this source code is governed by a MIT license
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Breaker ¶
type Breaker interface { Name() string // Name returns the name of the Breaker. Errors(join string) string // reason Allow() error // Accept() // allow successful. Reject(reason string) // allow failed. AcceptValue(v float64) // allow successful. RejectValue(v float64, reason string) // allow failed. }
A Breaker represents a circuit breaker.
func NewGBreaker ¶
Click to show internal directories.
Click to hide internal directories.