feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
package impl
import (
"git.apinb.com/bsm-service-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)
}