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,32 @@
filebeat.inputs:
- type: log
enabled: true
# 开启json解析
json.keys_under_root: true
json.add_error_key: true
# 日志文件路径
paths:
- ./logs/fts/error.log
- ./logs/fts/slow.log
setup.template.settings:
index.number_of_shards: 1
# 定义kafka topic field
fields:
log_topic: scf.license.dev
# 输出到kafka
output.kafka:
hosts: ["127.0.0.1:9092"]
topic: '%{[fields.log_topic]}'
partition.round_robin:
reachable_only: false
required_acks: 1
keep_alive: 10s
# ================================= Processors =================================
processors:
- decode_json_fields:
fields: ['@timestamp','level','content','trace','span','duration']
target: ""

View File

@@ -0,0 +1,12 @@
go env -w CGO_ENABLED=0
go env -w GOOS="linux"
go env -w GOARCH=arm64
go build -o bsm-apps-fts ./cmd/main/main.go
go env -w GOARCH=amd64
go env -w GOOS="windows"
go env -w GOOS="linux"
go build -o bsm-apps-fts ./cmd/main/main.go
go env -w GOOS="windows"
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o fts ./cmd/main/main.go

View File

@@ -0,0 +1,7 @@
git pull
go get all
go get -u ./...
go mod tidy
git add .
git commit -m 'run ./script/update.sh'
git push