From 40a13e604f0fc94d09bd711de69d7422b3576338 Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Tue, 14 Aug 2018 09:20:00 +0000 Subject: [PATCH] Move mapper -> pkg/mapper to make clear that this is meant to be used elsewhere Signed-off-by: Matthias Rampke --- exporter.go | 2 +- exporter_test.go | 2 +- main.go | 2 +- {mapper => pkg/mapper}/action.go | 0 {mapper => pkg/mapper}/mapper.go | 0 {mapper => pkg/mapper}/mapper_test.go | 0 {mapper => pkg/mapper}/match.go | 0 {mapper => pkg/mapper}/metric_type.go | 0 {mapper => pkg/mapper}/telemetry.go | 0 {mapper => pkg/mapper}/timer.go | 0 10 files changed, 3 insertions(+), 3 deletions(-) rename {mapper => pkg/mapper}/action.go (100%) rename {mapper => pkg/mapper}/mapper.go (100%) rename {mapper => pkg/mapper}/mapper_test.go (100%) rename {mapper => pkg/mapper}/match.go (100%) rename {mapper => pkg/mapper}/metric_type.go (100%) rename {mapper => pkg/mapper}/telemetry.go (100%) rename {mapper => pkg/mapper}/timer.go (100%) diff --git a/exporter.go b/exporter.go index 6af801a..9924b0d 100644 --- a/exporter.go +++ b/exporter.go @@ -30,7 +30,7 @@ import ( "github.com/prometheus/common/log" "github.com/prometheus/common/model" - "github.com/prometheus/statsd_exporter/mapper" + "github.com/prometheus/statsd_exporter/pkg/mapper" ) const ( diff --git a/exporter_test.go b/exporter_test.go index 8f136c0..0722240 100644 --- a/exporter_test.go +++ b/exporter_test.go @@ -21,7 +21,7 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/statsd_exporter/mapper" + "github.com/prometheus/statsd_exporter/pkg/mapper" ) // TestNegativeCounter validates when we send a negative diff --git a/main.go b/main.go index 3b55c0d..a5054cf 100644 --- a/main.go +++ b/main.go @@ -26,7 +26,7 @@ import ( "github.com/prometheus/common/log" "github.com/prometheus/common/version" - "github.com/prometheus/statsd_exporter/mapper" + "github.com/prometheus/statsd_exporter/pkg/mapper" ) func init() { diff --git a/mapper/action.go b/pkg/mapper/action.go similarity index 100% rename from mapper/action.go rename to pkg/mapper/action.go diff --git a/mapper/mapper.go b/pkg/mapper/mapper.go similarity index 100% rename from mapper/mapper.go rename to pkg/mapper/mapper.go diff --git a/mapper/mapper_test.go b/pkg/mapper/mapper_test.go similarity index 100% rename from mapper/mapper_test.go rename to pkg/mapper/mapper_test.go diff --git a/mapper/match.go b/pkg/mapper/match.go similarity index 100% rename from mapper/match.go rename to pkg/mapper/match.go diff --git a/mapper/metric_type.go b/pkg/mapper/metric_type.go similarity index 100% rename from mapper/metric_type.go rename to pkg/mapper/metric_type.go diff --git a/mapper/telemetry.go b/pkg/mapper/telemetry.go similarity index 100% rename from mapper/telemetry.go rename to pkg/mapper/telemetry.go diff --git a/mapper/timer.go b/pkg/mapper/timer.go similarity index 100% rename from mapper/timer.go rename to pkg/mapper/timer.go