Microservice part to manage throttle
Go to file
2022-06-01 19:21:21 +02:00
cmd/rc-throttle refactor: move package to pkg 2021-10-12 21:57:35 +02:00
pkg/part chore: update dependencies 2022-01-03 16:56:33 +01:00
vendor build: update dependencies and build with go 1.18 2022-06-01 19:21:21 +02:00
.gitignore Naive implementation that always return min value 2019-12-27 15:40:23 +01:00
build-docker.sh build: add buildah script to publish docker images 2021-09-11 21:48:38 +02:00
Dockerfile build: upgrade to go 1.17 and dependencies 2021-09-01 22:26:03 +02:00
go.mod build: update dependencies and build with go 1.18 2022-06-01 19:21:21 +02:00
go.sum build: update dependencies and build with go 1.18 2022-06-01 19:21:21 +02:00
LICENSE Naive implementation that always return min value 2019-12-27 15:40:23 +01:00
Makefile Add makefile 2020-03-01 19:46:23 +01:00
README.md Naive implementation that always return min value 2019-12-27 15:40:23 +01:00

robocar-throttle

Microservice part to manage throttle

Usage

rc-throttle <OPTIONS>

  -mqtt-broker string
        Broker Uri, use MQTT_BROKER env if arg not set (default "tcp://127.0.0.1:1883")
  -mqtt-client-id string
        Mqtt client id, use MQTT_CLIENT_ID env if args not set (default "robocar-throttle")
  -mqtt-password string
        Broker Password, MQTT_PASSWORD env if args not set
  -mqtt-qos int
        Qos to pusblish message, use MQTT_QOS env if arg not set
  -mqtt-retain
        Retain mqtt message, if not set, true if MQTT_RETAIN env variable is set
  -mqtt-topic-throttle string
        Mqtt topic to publish throttle result, use MQTT_TOPIC_THROTTLE if args not set
  -mqtt-username string
        Broker Username, use MQTT_USERNAME env if arg not set
  -throttle-max float
        Minimum throttle value, use THROTTLE_MAX if args not set (default 0.3)
  -throttle-min float
        Minimum throttle value, use THROTTLE_MIN if args not set (default 0.3)

Docker build

export DOCKER_CLI_EXPERIMENTAL=enabled
docker buildx build . --platform linux/amd64,linux/arm/7,linux/arm64 -t cyrilix/robocar-throttle