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,24 @@
package impl
import (
"os"
"git.apinb.com/bsm-sdk/engine/print"
"git.apinb.com/bsm-sdk/engine/queue/pulsar"
"git.apinb.com/bsm-sdk/engine/vars"
)
var MQ *pulsar.Pulsar
func withPulsar() {
if Configure.Pulsar.IsHas() {
mq, err := pulsar.NewPulsar(&Configure.Pulsar)
if err != nil {
print.Fail("[Blocks Service] %s Pulsar Error: %d", vars.ServiceKey, err.Error())
os.Exit(0)
} else {
MQ = mq
print.Info("[Blocks Service] %s Queue/Pulsar Endpoint: %s", vars.ServiceKey, Configure.Pulsar.Endpoints)
}
}
}