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, }
View Source
var EnumCallType = map[string]bool{ CallTypeInternal: true, CallTypeExternal: true, CallTypeDatabase: true, CallTypeCache: true, }
Functions ¶
func NewCircuitBreaker ¶
func NewCircuitBreaker(cfg *config.CallWrapper, usecase string) (*gobreaker.CircuitBreaker, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.