INNER CODE UNIT · Go
SetDefaultConsumerChains
go-chassis/go-chassis · chassis_api.go:60
func SetDefaultConsumerChains(c map[string]string) {
goChassis.DefaultConsumerChainNames = c
}
// SetDefaultProviderChains set your custom chain map for Provider,if there is no config, this default chain will take affect
func SetDefaultProviderChains(c map[string]string) {
goChassis.DefaultProviderChainNames = c
}
// HijackSignal set signals that want to hijack.
func HijackSignal(sigs ...os.Signal) {
goChassis.sigs = sigs
}
// InstallPreShutdown instal what you want to achieve before graceful shutdown
func InstallPreShutdown(name string, f func(os.Signal)) {
// lazy init
if goChassis.preShutDownFuncs == nil {