INNER CODE UNIT · Go

RegisterSchema

go-chassis/go-chassis · chassis_api.go:55

func RegisterSchema(serverName string, structPtr interface{}, opts ...server.RegisterOption) {
	goChassis.registerSchema(serverName, structPtr, opts...)
}

// SetDefaultConsumerChains your custom chain map for Consumer,if there is no config, this default chain will take affect
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
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…