package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Functions

New constructs a gate Interface with zero or more options.
NewConstructor returns an Alice-style constructor which decorates HTTP handlers with gating logic.
WithClosedHandler configures an arbitrary http.Handler that will serve requests when a gate is closed.
WithGauge configures a gate with a metrics Gauge that tracks the state of the gate.

# Constants

Closed is the value a gauge is set to that indicates the gate is closed.
Open is the value a gauge is set to that indicates the gate is open.

# Structs

Lever is an http.Handler which controls the state of a gate.
Status is an http.Handler that reports the status of a gate.

# Interfaces

Interface represents a concurrent condition indicating whether HTTP traffic should be allowed.

# Type aliases

ConstructorOption configures a gate decorator.
GateOption is a configuration option for a gate Interface.