123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package bus
- import (
- "assetcenter/conf"
- "infish.cn/comm"
- )
- var NatsCenter *comm.NatsBus
- func NewNatsBus(app *conf.AppConf) *comm.NatsBus {
- bus, _ := comm.NewNatsBus2(app.Nats.Url, app.Nats.MaxReconnect,
- app.Nats.ReconnDelaySecond,
- []*comm.NatsStreamWather{
- CreateOsgConvResultWather(app),
- CreateShadowResultWather(app),
- // CreateHdrResultWather(app),
- },
- []*comm.NatsMsgReplyer{
- newReplayer(),
- addTreeDefineMatgroup(),
- removeTreeDefineMatgroup(),
- addTreeDefineMeshpack(),
- removeTreeDefineMeshpack(),
- RegTreeCategoryQuery(),
- RegTreeAssetAddMatgroup(),
- RegTreeAssetDetailMatgroup(),
- RegTreeAssetDetailMeshPack(),
- RegTreeDbCategoriesQuery(),
- RegTreeAssetList(),
- RegTreeUserCategoryUpdate(),
- RegTreeUserAssetCategoryUpdate(),
- RegTreeUserAssetCategoryQuery(),
- RegTreeDbAssetsQuery(),
- RegTreeDbAssetsUpdate(),
- RegTreeDbCategoriesUpdate(),
- RegTreeAssetInsert(),
- RegTreeAssetPackDetail(),
- RegTreeAssetMatgroupDetail(),
- RegTreeAssetImageDetail(),
- RegTreeAssetRemove(),
- RegTreeAssetDetail(),
- RegTreeAssetUpdate(),
- RegTreeAssetPackProcess(),
- RegTreeAssetCreate(),
- RegTreeAssetRecreateShadow(),
- // 图片搜索
- RegTreeSearchImage(),
- })
- NatsCenter = bus
- return NatsCenter
- }
|