refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View File

@@ -0,0 +1,29 @@
package impl
import (
"bsm/full/module/ec/delivery/internal/config"
"git.apinb.com/bsm-sdk/engine/service"
)
var (
Configure config.Config
)
func NewService(srvKey string) {
// register service
service.Register(srvKey, &Configure)
service.RegisterAnonymous(&Configure.RpcServerConf, &Configure.Anonymous)
service.Start(Configure.ListenOn)
// with activating
withModel() // model
withMemCache() // mem cache
withRedisCache() // redis cache
withPulsar() // mq - pulsar
// service done.
service.Done(&Configure.Prometheus, &Configure.Telemetry)
}