circuitBreaker

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiTypeHTTP = "http"
	ApiTypeGRPC = "grpc"
)
View Source
const (
	// CallTypeInternal : internal/local services dependencies
	CallTypeInternal = "internal"

	// CallTypeExternal : 3rd party dependencies
	CallTypeExternal = "external"

	// CallTypeDatabase : databases dependencies
	CallTypeDatabase = "database"

	// CallTypeCache : cache dependencies
	CallTypeCache = "cache"
)

Variables

View Source
var EnumAPIType = map[string]bool{
	ApiTypeHTTP: true,
	ApiTypeGRPC: true,
}

Functions

func NewCircuitBreaker

func NewCircuitBreaker(cfg *config.CallWrapper, usecase string) (*gobreaker.CircuitBreaker, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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