SafeLine/management/tcontrollerd
2024-07-10 15:52:06 +08:00
..
controller feat: add management 2024-07-04 17:54:34 +08:00
model feat: add management 2024-07-04 17:54:34 +08:00
pkg feat: add management 2024-07-04 17:54:34 +08:00
proto/website feat: add management 2024-07-04 17:54:34 +08:00
utils feat: add management 2024-07-04 17:54:34 +08:00
config.yml feat: add management 2024-07-04 17:54:34 +08:00
go.mod chore: update dep 2024-07-10 15:52:06 +08:00
go.sum chore: update dep 2024-07-10 15:52:06 +08:00
main.go feat: add management 2024-07-04 17:54:34 +08:00
README.md feat: add management 2024-07-04 17:54:34 +08:00

TControllerD

Tengine Controller Daemon (abbr. TCD) will be running in the Tengine container, designed to be in place with minion on the host machine.

Requirements

Go 1.18+

Development

init protobuf

# Refer: https://grpc.io/docs/languages/go/quickstart/
# 1. Install protoc
# https://grpc.io/docs/protoc-installation/

# 2. Install Go plugins
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30.0
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0

# 3. Update your PATH so that the protoc compiler can find the plugins
# export PATH="$PATH:$(go env GOPATH)/bin"

# 4. Generate proto go code
# cd /path/to/management
./scripts/genproto.sh