efritz/overcurrent

View on GitHub

Showing 62 of 62 total issues

exported type CircuitState should have comment or be unexported
Open

    CircuitState int
Severity: Minor
Found in breaker.go by golint

exported method Collector.Start should have comment or be unexported
Open

func (c *Collector) Start() {
Severity: Minor
Found in hystrix/collector.go by golint

exported type FrozenBreakerStats should have comment or be unexported
Open

    FrozenBreakerStats struct {
Severity: Minor
Found in hystrix/stats.go by golint

exported function NewRegistry should have comment or be unexported
Open

func NewRegistry() Registry {
Severity: Minor
Found in registry.go by golint

exported function WithFailureInterpreter should have comment or be unexported
Open

func WithFailureInterpreter(failureInterpreter FailureInterpreter) BreakerConfigFunc {
Severity: Minor
Found in breaker.go by golint

exported function NewBreakerStats should have comment or be unexported
Open

func NewBreakerStats(config overcurrent.BreakerConfig) *BreakerStats {
Severity: Minor
Found in hystrix/stats.go by golint

exported method NoopBreaker.Call should have comment or be unexported
Open

func (b *NoopBreaker) Call(f BreakerFunc) error             { return f(context.Background()) }
Severity: Minor
Found in noop.go by golint

exported method NoopBreaker.CallAsync should have comment or be unexported
Open

func (b *NoopBreaker) CallAsync(f BreakerFunc) <-chan error { return nil }
Severity: Minor
Found in noop.go by golint

exported function WithMaxConcurrencyTimeout should have comment or be unexported
Open

func WithMaxConcurrencyTimeout(timeout time.Duration) BreakerConfigFunc {
Severity: Minor
Found in breaker.go by golint

exported function WithCollector should have comment or be unexported
Open

func WithCollector(collector MetricCollector) BreakerConfigFunc {
Severity: Minor
Found in breaker.go by golint

exported method MultiCollector.ReportCount should have comment or be unexported
Open

func (c *MultiCollector) ReportCount(eventType EventType) {
Severity: Minor
Found in multi_collector.go by golint

exported method WindowFailureTripCondition.Success should have comment or be unexported
Open

func (tc *WindowFailureTripCondition) Success() {
Severity: Minor
Found in trip.go by golint

exported method PercentageFailureTripCondition.Success should have comment or be unexported
Open

func (tc *PercentageFailureTripCondition) Success() {
Severity: Minor
Found in trip.go by golint

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

package hystrix
Severity: Minor
Found in hystrix/collector.go by gofmt

exported method WindowFailureTripCondition.Failure should have comment or be unexported
Open

func (tc *WindowFailureTripCondition) Failure() {
Severity: Minor
Found in trip.go by golint

exported function WithInvocationTimeout should have comment or be unexported
Open

func WithInvocationTimeout(timeout time.Duration) BreakerConfigFunc {
Severity: Minor
Found in breaker.go by golint

exported type Collector should have comment or be unexported
Open

type Collector struct {
Severity: Minor
Found in hystrix/collector.go by golint

exported method MultiCollector.ReportState should have comment or be unexported
Open

func (c *MultiCollector) ReportState(state CircuitState) {
Severity: Minor
Found in multi_collector.go by golint

exported type NamedMetricCollector should have comment or be unexported
Open

    NamedMetricCollector interface {
Severity: Minor
Found in named_collector.go by golint

exported method NoopBreaker.ShouldTry should have comment or be unexported
Open

func (b *NoopBreaker) ShouldTry() bool                      { return true }
Severity: Minor
Found in noop.go by golint
Severity
Category
Status
Source
Language