-
Notifications
You must be signed in to change notification settings - Fork 174
/
generate.go
18 lines (17 loc) · 2.03 KB
/
generate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package veneur
//go:generate protoc --gogofaster_out=Mssf/sample.proto=github.com/stripe/veneur/v14/ssf,plugins=grpc:. sinks/falconer/grpc_sink.proto
//go:generate protoc --gogofaster_out=plugins=grpc:. ssf/grpc.proto
//go:generate protoc --gogofaster_out=plugins=grpc:. protocol/dogstatsd/grpc.proto
//go:generate protoc --gogofaster_out=. ssf/sample.proto
//go:generate protoc -I=. -I=$GOPATH/pkg/mod -I=$GOPATH/pkg/mod/github.com/gogo/[email protected]/protobuf --gogofaster_out=. tdigest/tdigest.proto
//go:generate protoc -I=. -I=$GOPATH/pkg/mod -I=$GOPATH/pkg/mod/github.com/gogo/[email protected]/protobuf --gogofaster_out=Mtdigest/tdigest.proto=github.com/stripe/veneur/v14/tdigest:. samplers/metricpb/metric.proto
//go:generate protoc -I=. -I=$GOPATH/pkg/mod -I=$GOPATH/pkg/mod/github.com/gogo/[email protected]/protobuf --gogofaster_out=Mtdigest/tdigest.proto=github.com/stripe/veneur/v14/tdigest,Msamplers/metricpb/metric.proto=github.com/stripe/veneur/v14/samplers/metricpb,Mgoogle/protobuf/empty.proto=github.com/golang/protobuf/ptypes/empty,plugins=grpc:. forwardrpc/forward.proto
//go:generate stringer -type MetricType ./samplers
//TODO(aditya) reenable go:generate gojson -input fixtures/datadog_trace.json -o datadog_trace_span.go -fmt json -pkg veneur -name DatadogTraceSpan
//go:generate mockgen -source=forwardrpc/forward.pb.go -destination=forwardrpc/forward_mock.pb.go -package=forwardrpc
//go:generate mockgen -source=discovery/discoverer.go -destination=discovery/discoverer_mock.go -package=discovery
//go:generate mockgen -source=sinks/sinks.go -destination=sinks/mock/mock.go -package=mock
//go:generate mockgen -source=sources/sources.go -destination=sources/mock/mock.go -package=mock
//go:generate mockgen -source=scopedstatsd/client.go -destination=scopedstatsd/client_mock.go -package=scopedstatsd
//go:generate mockgen -source=proxy/connect/connect.go -destination=proxy/connect/connect_mock.go -package=connect
//go:generate mockgen -source=proxy/destinations/destinations.go -destination=proxy/destinations/destinations_mock.go -package=destinations