VictoriaMetrics/lib/prompb
Aliaksandr Valialkin 8504a38214 lib/prombp: apply ba06b47c16
The following commands used:

gofmt -r '(uint64(x)&0x7F)<<shift -> uint64(x&0x7F)<<shift' -w ./lib/prompb/
gofmt -r '(int64(x)&0x7F)<<shift -> int64(x&0x7F)<<shift' -w ./lib/prompb/
2019-08-29 13:35:54 +03:00
..
README.md all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
remote.pb.go lib/prombp: apply ba06b47c16 2019-08-29 13:35:54 +03:00
remote.proto all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
types.pb.go lib/prombp: apply ba06b47c16 2019-08-29 13:35:54 +03:00
types.proto all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
util.go lib/prompb: remove superflouos bytes copying in ReadSnappy 2019-06-18 21:02:02 +03:00

The compiled protobufs are version controlled and you won't normally need to re-compile them when building Prometheus.

If however you have modified the defs and do need to re-compile, run ./scripts/genproto.sh from the parent dir.

In order for the script to run, you'll need protoc (version 3.5) in your PATH, and the following Go packages installed:

  • github.com/gogo/protobuf
  • github.com/gogo/protobuf/protoc-gen-gogofast
  • github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/
  • github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
  • golang.org/x/tools/cmd/goimports