这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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