Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 273bdd6

Browse files
authored
refactor: update module name (#385)
* fix: update import paths to use `github.com/kitabisa/teler` Signed-off-by: Dwi Siswanto <[email protected]> * refactor: update module name (2) Signed-off-by: Dwi Siswanto <[email protected]> --------- Signed-off-by: Dwi Siswanto <[email protected]>
1 parent a730cab commit 273bdd6

31 files changed

+58
-55
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
bin/*
22
dist/*
33
teler.yaml
4-
.scannerwork/
4+
.scannerwork/
5+
/teler.app

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN go mod download
1212

1313
COPY . .
1414
RUN CGO_ENABLED=0 go build -ldflags \
15-
"-s -w -X teler.app/common.Version=${VERSION}" \
15+
"-s -w -X github.com/kitabisa/teler/common.Version=${VERSION}" \
1616
-o ./bin/teler .
1717

1818
FROM alpine:latest

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ help:
2424
build:
2525
@echo "--- Building ${APP_NAME} ${VERSION}"
2626
@echo "GOPATH=${GOPATH}"
27-
go build -ldflags "-s -w -X teler.app/common.Version=${VERSION}" -buildvcs=false -o ./bin/${APP_NAME} .
27+
go build -ldflags "-s -w -X github.com/kitabisa/teler/common.Version=${VERSION}" -buildvcs=false -o ./bin/${APP_NAME} .
2828

2929
build-all:
3030
@echo "--- Cross-platform build ${APP_NAME} ${VERSION}"

common/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package common
33
import (
44
"os"
55

6-
"teler.app/pkg/parsers"
6+
"github.com/kitabisa/teler/pkg/parsers"
77
)
88

99
// Options contains the configuration options

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module teler.app
1+
module github.com/kitabisa/teler
22

33
go 1.18
44

internal/alert/alert.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package alert
33
import (
44
"reflect"
55

6-
"teler.app/common"
7-
"teler.app/pkg/matchers"
8-
"teler.app/pkg/utils"
6+
"github.com/kitabisa/teler/common"
7+
"github.com/kitabisa/teler/pkg/matchers"
8+
"github.com/kitabisa/teler/pkg/utils"
99
)
1010

1111
// New will initialize notification provider & send threat alerts

internal/alert/discord.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99

1010
"github.com/bwmarrin/discordgo"
11-
"teler.app/pkg/errors"
11+
"github.com/kitabisa/teler/pkg/errors"
1212
)
1313

1414
// token can be webhook URL if webhooked is true

internal/alert/telegram.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strconv"
88

99
tg "github.com/go-telegram-bot-api/telegram-bot-api"
10-
"teler.app/pkg/errors"
10+
"github.com/kitabisa/teler/pkg/errors"
1111
)
1212

1313
//go:embed template/*.tmpl

internal/event/event.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"strconv"
1111

1212
"github.com/goji/httpauth"
13+
"github.com/kitabisa/teler/common"
14+
"github.com/kitabisa/teler/pkg/errors"
1315
"github.com/projectdiscovery/gologger"
1416
"github.com/r3labs/sse/v2"
1517
"goji.io"
1618
"goji.io/pat"
17-
"teler.app/common"
18-
"teler.app/pkg/errors"
1919
)
2020

2121
// Run SSE

internal/event/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package event
22

33
import (
4+
"github.com/kitabisa/teler/common"
45
"github.com/r3labs/sse/v2"
5-
"teler.app/common"
66
)
77

88
type server struct {

0 commit comments

Comments
 (0)