noop

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCircuitBreaker

func NewCircuitBreaker() circuitbreaking.CircuitBreaker

NewCircuitBreaker returns a CircuitBreaker that always allows operations to proceed.

Example
package main

import (
	"fmt"

	"github.com/primandproper/platform/circuitbreaking/noop"
)

func main() {
	cb := noop.NewCircuitBreaker()

	fmt.Println(cb.CanProceed())

	cb.Failed()
	fmt.Println(cb.CanProceed())
}
Output:
true
true

Types

This section is empty.

Jump to

Keyboard shortcuts

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