Skip to content

Commit

Permalink
fix gomod and module
Browse files Browse the repository at this point in the history
  • Loading branch information
cuisongliu committed Apr 30, 2022
1 parent 6c9a668 commit 7605c65
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builds:
- amd64
- arm64
ldflags:
- -s -w -X github.com/sealyun/lvscare/cmd.Version={{.Version}} -X github.com/sealyun/lvscare/cmd.Githash={{.ShortCommit}} -X github.com/sealyun/lvscare/cmd.Buildstamp={{.Date}} -X github.com/sealyun/lvscare/cmd.Author=goreleaser
- -s -w -X github.com/labring/lvscare/cmd.Version={{.Version}} -X github.com/labring/lvscare/cmd.Githash={{.ShortCommit}} -X github.com/labring/lvscare/cmd.Buildstamp={{.Date}} -X github.com/labring/lvscare/cmd.Author=goreleaser
#archives:
# - replacements:
# darwin: darwin
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build Status](https://github.com/sealyun/lvscare/actions/workflows/go.yml/badge.svg)](https://github.com/sealyun/lvscare/actions/workflows/go.yml)
[![Release](https://github.com/sealyun/lvscare/actions/workflows/release.yml/badge.svg)](https://github.com/sealyun/lvscare/actions/workflows/release.yml)
[![Build Status](https://github.com/labring/lvscare/actions/workflows/go.yml/badge.svg)](https://github.com/labring/lvscare/actions/workflows/go.yml)
[![Release](https://github.com/labring/lvscare/actions/workflows/release.yml/badge.svg)](https://github.com/labring/lvscare/actions/workflows/release.yml)
# LVScare
A lightweight LVS baby care, support ipvs health check

Expand Down
4 changes: 2 additions & 2 deletions care/care.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package care

import (
"github.com/sealyun/lvscare/internal/glog"
"github.com/labring/lvscare/internal/glog"
"time"

"github.com/sealyun/lvscare/service"
"github.com/labring/lvscare/service"
)

//VsAndRsCare is
Expand Down
4 changes: 2 additions & 2 deletions care/create.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package care

import (
"github.com/sealyun/lvscare/internal/glog"
"github.com/sealyun/lvscare/service"
"github.com/labring/lvscare/internal/glog"
"github.com/labring/lvscare/service"
)

//createVsAndRs is
Expand Down
2 changes: 1 addition & 1 deletion care/vars.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package care

import "github.com/sealyun/lvscare/service"
import "github.com/labring/lvscare/service"

type LvsCare struct {
HealthPath string
Expand Down
4 changes: 2 additions & 2 deletions cmd/care.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
package cmd

import (
"github.com/sealyun/lvscare/care"
"github.com/sealyun/lvscare/utils"
"github.com/labring/lvscare/care"
"github.com/labring/lvscare/utils"
"github.com/spf13/cobra"
)

Expand Down
3 changes: 1 addition & 2 deletions cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ var (

func VersionStr() {
fmt.Printf(`A lightweight LVS baby care, support ipvs health check
run "lvscare -h" get more help, more see https://github.com/sealyun/lvscare
run "lvscare -h" get more help, more see https://github.com/labring/lvscare
`)
fmt.Printf("lvscare version : %s\n", Version)
fmt.Printf("Git Commit Hash: %s\n", Githash)
fmt.Printf("Build Time : %s\n", Buildstamp)
fmt.Printf("BuildBy : %s\n", Author)
}

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/sealyun/lvscare
module github.com/labring/lvscare

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions internal/ipvs/ipvs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ package ipvs

import (
"fmt"
"github.com/sealyun/lvscare/internal/exec"
"github.com/sealyun/lvscare/internal/version"
"github.com/labring/lvscare/internal/exec"
"github.com/labring/lvscare/internal/version"
"net"
"strconv"
"strings"
Expand Down
3 changes: 2 additions & 1 deletion internal/ipvs/ipvs_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

/*
Expand All @@ -21,7 +22,7 @@ package ipvs
import (
"errors"
"fmt"
"github.com/sealyun/lvscare/internal/glog"
"github.com/labring/lvscare/internal/glog"
"net"
"strings"
"sync"
Expand Down
7 changes: 4 additions & 3 deletions internal/ipvs/kernelcheck_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

/*
Expand All @@ -20,12 +21,12 @@ package ipvs

import (
"fmt"
"github.com/sealyun/lvscare/internal/glog"
"github.com/labring/lvscare/internal/glog"
"regexp"
"strings"

utilsexec "github.com/sealyun/lvscare/internal/exec"
"github.com/sealyun/lvscare/internal/sets"
utilsexec "github.com/labring/lvscare/internal/exec"
"github.com/labring/lvscare/internal/sets"

"github.com/lithammer/dedent"
)
Expand Down
3 changes: 2 additions & 1 deletion internal/ipvs/kernelcheck_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux

/*
Expand All @@ -19,7 +20,7 @@ limitations under the License.
package ipvs

import (
utilsexec "github.com/sealyun/lvscare/internal/exec"
utilsexec "github.com/labring/lvscare/internal/exec"
)

// RequiredIPVSKernelModulesAvailableCheck tests IPVS required kernel modules.
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package main

import "github.com/sealyun/lvscare/cmd"
import "github.com/labring/lvscare/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion service/lvscare.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package service

import (
"github.com/sealyun/lvscare/internal/ipvs"
"github.com/labring/lvscare/internal/ipvs"
)

//BuildLvscare is
Expand Down
6 changes: 3 additions & 3 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package service
import (
"errors"
"fmt"
"github.com/sealyun/lvscare/internal/glog"
"github.com/labring/lvscare/internal/glog"
"net"
"strconv"
"syscall"

"github.com/sealyun/lvscare/internal/ipvs"
"github.com/sealyun/lvscare/utils"
"github.com/labring/lvscare/internal/ipvs"
"github.com/labring/lvscare/utils"
)

//EndPoint is
Expand Down
2 changes: 1 addition & 1 deletion test/ipvs_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
"github.com/sealyun/lvscare/utils"
"github.com/labring/lvscare/utils"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion utils/log.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package utils

import (
"github.com/sealyun/lvscare/internal/glog"
"github.com/labring/lvscare/internal/glog"
)

func Config(level string) {
Expand Down
4 changes: 2 additions & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package utils
import (
"crypto/tls"
"fmt"
"github.com/sealyun/lvscare/internal/glog"
"github.com/sealyun/lvscare/internal/ipvs"
"github.com/labring/lvscare/internal/glog"
"github.com/labring/lvscare/internal/ipvs"
"net"
"net/http"
"strconv"
Expand Down

0 comments on commit 7605c65

Please sign in to comment.