Skip to content

Commit

Permalink
chore: move to internal packages
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Oct 29, 2023
1 parent 8738fca commit b899fa1
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/common/model"
"github.com/sebhoss/matrix-alertmanager-receiver/config"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/config"
"html/template"
"log/slog"
"maps"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package alertmanager

import (
amtemplate "github.com/prometheus/alertmanager/template"
"github.com/sebhoss/matrix-alertmanager-receiver/config"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/config"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions handler/alerts.go → internal/handler/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"context"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/sebhoss/matrix-alertmanager-receiver/alertmanager"
"github.com/sebhoss/matrix-alertmanager-receiver/matrix"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/alertmanager"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/matrix"
"log/slog"
"net/http"
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion matrix/client.go → internal/matrix/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/matrix-org/gomatrix"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/sebhoss/matrix-alertmanager-receiver/config"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/config"
"log/slog"
"os"
"slices"
Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"flag"
"fmt"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sebhoss/matrix-alertmanager-receiver/alertmanager"
"github.com/sebhoss/matrix-alertmanager-receiver/config"
"github.com/sebhoss/matrix-alertmanager-receiver/handler"
"github.com/sebhoss/matrix-alertmanager-receiver/matrix"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/alertmanager"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/config"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/handler"
"github.com/sebhoss/matrix-alertmanager-receiver/internal/matrix"
"log/slog"
"net/http"
"os"
Expand Down

0 comments on commit b899fa1

Please sign in to comment.