errors

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	POLICY_REPORT_IGNORE = "ignore"
	POLICY_REPORT_EVERY  = "report"
	POLICY_REPORT_ONCE   = "report-once"

	POLICY_METRIC_DROP = "drop"
	POLICY_METRIC_ZERO = "zero"

	POLICY_RETRY_YES = "retry"
	POLICY_RETRY_NO  = "stop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	Report string
	Metric string
	Retry  string
	// contains filtered or unexported fields
}

func NewPolicy

func NewPolicy(s string) *Policy

func (*Policy) ReportError

func (p *Policy) ReportError() bool

func (Policy) String

func (p Policy) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL