Skip to content

Commit

Permalink
Rename module name and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc committed Sep 22, 2023
1 parent 2de8370 commit 97c7b47
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion exporter/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package exporter
import (
"net/http"

"github.com/infinityworks/github-exporter/config"
"github.com/githubexporter/github-exporter/config"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/infinityworks/github-exporter
module github.com/githubexporter/github-exporter

go 1.19

Expand Down
7 changes: 4 additions & 3 deletions http/server.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package http

import (
"github.com/infinityworks/github-exporter/exporter"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"log"
"net/http"

"github.com/githubexporter/github-exporter/exporter"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
)

type Server struct {
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
conf "github.com/infinityworks/github-exporter/config"
"github.com/infinityworks/github-exporter/exporter"
"github.com/infinityworks/github-exporter/http"
conf "github.com/githubexporter/github-exporter/config"
"github.com/githubexporter/github-exporter/exporter"
"github.com/githubexporter/github-exporter/http"
"github.com/infinityworks/go-common/logger"
"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"
Expand Down
11 changes: 6 additions & 5 deletions test/github_exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ package test

import (
"fmt"
"github.com/infinityworks/github-exporter/config"
"github.com/infinityworks/github-exporter/exporter"
web "github.com/infinityworks/github-exporter/http"
"github.com/prometheus/client_golang/prometheus"
"github.com/steinfletcher/apitest"
"io/ioutil"
"net/http"
"os"
"strings"
"testing"

"github.com/githubexporter/github-exporter/config"
"github.com/githubexporter/github-exporter/exporter"
web "github.com/githubexporter/github-exporter/http"
"github.com/prometheus/client_golang/prometheus"
"github.com/steinfletcher/apitest"
)

func TestHomepage(t *testing.T) {
Expand Down

0 comments on commit 97c7b47

Please sign in to comment.