new boot
This commit is contained in:
1 parent
405f6f8cee
commit
412a150d1e
4 files changed
+24
-22
No files matched your search
@@ -22,8 +22,7 @@ func main() {
|
||||
ServiceBootstrap(&conf.Configuration{}, &conf.RemoteConfig{}).
|
||||
OnLocalConfigLoad(onLocalConfigLoad).
|
||||
SocketConfiguration(socketConfiguration).
|
||||
SendRemoteConfigSchemaWithVersion(version).
|
||||
SendRoutes(routesData).
|
||||
DeclareMe(routesData).
|
||||
OnRemoteConfigReceive(onRemoteConfigReceive).
|
||||
OnShutdown(onShutdown).
|
||||
Run()
|
||||
@@ -58,11 +57,11 @@ func onLocalConfigLoad(cfg *conf.Configuration) {
|
||||
backend.StartBackendGrpcServer(cfg.GrpcInnerAddress, service)
|
||||
}
|
||||
|
||||
func routesData(localConfig interface{}) bootstrap.SendRoutesData {
|
||||
func routesData(localConfig interface{}) bootstrap.ModuleInfo {
|
||||
cfg := localConfig.(*conf.Configuration)
|
||||
return bootstrap.SendRoutesData{
|
||||
return bootstrap.ModuleInfo{
|
||||
ModuleName: cfg.ModuleName,
|
||||
Version: version,
|
||||
ModuleVersion: version,
|
||||
GrpcOuterAddress: cfg.GrpcOuterAddress,
|
||||
Handlers: helper.GetHandlers(),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user