prototest/

directory
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2022 License: MIT

README

prototest

Regenerating protobuf files

$ protoc -I report/ report/report.proto --go_out=plugins=grpc:report

Building

$ CGO_ENABLED=0 go build -o report_client ./client/
$ CGO_ENABLED=0 go build -o report_server ./server/

Set GOOS=linux GOARCH=arm in environment to build towards armv7l.

Running client

There's a report_client.service, which can be run under systemd:

$ sudo cp report_client.{service,timer} /usr/lib/systemd/user/
$ sudo cp {report_client,gather_facts} /usr/local/bin/
$ systemctl --user start report_client.timer

Directories

Path Synopsis
client.go implements a GRPC Report client.
client.go implements a GRPC Report client.
Package report is a generated protocol buffer package.
Package report is a generated protocol buffer package.
server.go implements a GRPC Report server.
server.go implements a GRPC Report server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL