chore: Rename module
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
9b239a556e
commit
2bc6ab0280
11 changed files with 18 additions and 18 deletions
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/jouir/pgterminate/log"
|
"git.riou.xyz/jriou/pgterminate/log"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jouir/pgterminate/log"
|
"git.riou.xyz/jriou/pgterminate/log"
|
||||||
"github.com/lib/pq"
|
"github.com/lib/pq"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package base
|
package base
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jouir/pgterminate/log"
|
"git.riou.xyz/jriou/pgterminate/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Panic prints a non-nil error and terminates the program
|
// Panic prints a non-nil error and terminates the program
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/jouir/pgterminate/base"
|
"git.riou.xyz/jriou/pgterminate/base"
|
||||||
"github.com/jouir/pgterminate/log"
|
"git.riou.xyz/jriou/pgterminate/log"
|
||||||
"github.com/jouir/pgterminate/notifier"
|
"git.riou.xyz/jriou/pgterminate/notifier"
|
||||||
"github.com/jouir/pgterminate/terminator"
|
"git.riou.xyz/jriou/pgterminate/terminator"
|
||||||
"golang.org/x/crypto/ssh/terminal"
|
"golang.org/x/crypto/ssh/terminal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/jouir/pgterminate
|
module git.riou.xyz/jriou/pgterminate
|
||||||
|
|
||||||
go 1.25.0
|
go 1.25.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package notifier
|
package notifier
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jouir/pgterminate/base"
|
"git.riou.xyz/jriou/pgterminate/base"
|
||||||
"github.com/jouir/pgterminate/log"
|
"git.riou.xyz/jriou/pgterminate/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Console notifier structure
|
// Console notifier structure
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jouir/pgterminate/base"
|
"git.riou.xyz/jriou/pgterminate/base"
|
||||||
"github.com/jouir/pgterminate/log"
|
"git.riou.xyz/jriou/pgterminate/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// File structure for file notifier
|
// File structure for file notifier
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package notifier
|
package notifier
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jouir/pgterminate/base"
|
"git.riou.xyz/jriou/pgterminate/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Notifier generic interface for implementing a notifier
|
// Notifier generic interface for implementing a notifier
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package notifier
|
||||||
import (
|
import (
|
||||||
"log/syslog"
|
"log/syslog"
|
||||||
|
|
||||||
"github.com/jouir/pgterminate/base"
|
"git.riou.xyz/jriou/pgterminate/base"
|
||||||
"github.com/jouir/pgterminate/log"
|
"git.riou.xyz/jriou/pgterminate/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Syslog notifier
|
// Syslog notifier
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jouir/pgterminate/base"
|
"git.riou.xyz/jriou/pgterminate/base"
|
||||||
"github.com/jouir/pgterminate/log"
|
"git.riou.xyz/jriou/pgterminate/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Terminator looks for sessions, filters actives and idles, terminate them and notify sessions channel
|
// Terminator looks for sessions, filters actives and idles, terminate them and notify sessions channel
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jouir/pgterminate/base"
|
"git.riou.xyz/jriou/pgterminate/base"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFilterUsers(t *testing.T) {
|
func TestFilterUsers(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue