22 lines
558 B
Go
22 lines
558 B
Go
|
|
// Worker 进程入口;保留独立扩缩和 Redis Streams 消费边界。
|
||
|
|
package main
|
||
|
|
|
||
|
|
import (
|
||
|
|
"os"
|
||
|
|
"os/signal"
|
||
|
|
"syscall"
|
||
|
|
|
||
|
|
"git.apinb.com/bsm-sdk/core/printer"
|
||
|
|
"git.apinb.com/heqiapp/platforms/backend/worker/internal/config"
|
||
|
|
"git.apinb.com/heqiapp/platforms/backend/worker/internal/impl"
|
||
|
|
)
|
||
|
|
|
||
|
|
func main() {
|
||
|
|
config.New("PlatformWorker")
|
||
|
|
impl.NewImpl()
|
||
|
|
printer.Info("[BSM - PlatformWorker] Mock worker started; Redis Streams consumer is not enabled")
|
||
|
|
quit := make(chan os.Signal, 1)
|
||
|
|
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
|
||
|
|
<-quit
|
||
|
|
}
|