Skip to content

Commit 400e957

Browse files
authored
refactor: Change base module to alibaba/sentinel-golang (alibaba#54)
1 parent 4272db3 commit 400e957

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+82
-82
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- Thanks for submitting a pull request! Here are some tips for you:
2-
1. Please make sure you have read and understood the contributing guidelines: https://github.com/sentinel-group/blob/master/CONTRIBUTING.md
2+
1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md
33
2. Please make sure the PR has a corresponding issue.
44
-->
55

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ The final commit message should be clear and concise.
4646

4747
### Open an issue / PR
4848

49-
We use [GitHub Issues](https://github.com/sentinel-group/sentinel-golang/issues) and [Pull Requests](https://github.com/sentinel-group/sentinel-golang/pulls) for trackers.
49+
We use [GitHub Issues](https://github.com/alibaba/sentinel-golang/issues) and [Pull Requests](https://github.com/alibaba/sentinel-golang/pulls) for trackers.
5050

5151
If you find a typo in document, find a bug in code, or want new features, or want to give suggestions,
52-
you can [open an issue on GitHub](https://github.com/sentinel-group/sentinel-golang/issues/new) to report it.
52+
you can [open an issue on GitHub](https://github.com/alibaba/sentinel-golang/issues/new) to report it.
5353
Please follow the guideline message in the issue template.
5454

5555
If you want to contribute, please follow the [contribution workflow](#github-workflow) and create a new pull request.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ See the [中文文档](https://github.com/alibaba/sentinel-golang/wiki/介绍) f
2424
See the [Wiki](https://github.com/alibaba/sentinel-golang/wiki) for full documentation, examples, blog posts, and other information.
2525

2626
If you are using Sentinel, please [**leave a comment here**](https://github.com/alibaba/Sentinel/issues/18) to tell us your scenario to make Sentinel better.
27-
It's also encouraged to add the link of your blog post, tutorial, demo or customized components to [**Awesome Sentinel**](https://github.com/sentinel-group/sentinel-awesome).
27+
It's also encouraged to add the link of your blog post, tutorial, demo or customized components to [**Awesome Sentinel**](https://github.com/alibaba/sentinel-awesome).
2828

2929
## Bugs and Feedback
3030

31-
For bug report, questions and discussions please submit [GitHub Issues](https://github.com/sentinel-group/sentinel-golang/issues).
31+
For bug report, questions and discussions please submit [GitHub Issues](https://github.com/alibaba/sentinel-golang/issues).
3232

3333
## Contributing
3434

3535
Contributions are always welcomed! Please see [CONTRIBUTING](./CONTRIBUTING.md) for detailed guidelines.
3636

37-
You can start with the issues labeled with [`good first issue`](https://github.com/sentinel-group/sentinel-golang/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
37+
You can start with the issues labeled with [`good first issue`](https://github.com/alibaba/sentinel-golang/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).

api/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package api
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
)
66

77
// Entry is the basic API of Sentinel.

api/api_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package api
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
"github.com/stretchr/testify/assert"
66
"github.com/stretchr/testify/mock"
77
"testing"

api/init.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package api
22

33
import (
44
"fmt"
5-
"github.com/sentinel-group/sentinel-golang/core/config"
6-
"github.com/sentinel-group/sentinel-golang/core/log/metric"
7-
"github.com/sentinel-group/sentinel-golang/core/system"
8-
"github.com/sentinel-group/sentinel-golang/logging"
5+
"github.com/alibaba/sentinel-golang/core/config"
6+
"github.com/alibaba/sentinel-golang/core/log/metric"
7+
"github.com/alibaba/sentinel-golang/core/system"
8+
"github.com/alibaba/sentinel-golang/logging"
99
)
1010

1111
// InitDefault initializes Sentinel using the configuration from system

api/option.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package api
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
)
66

77
// Options represents the options of a Sentinel resource entry.

api/slot_chain.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package api
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
5-
"github.com/sentinel-group/sentinel-golang/core/flow"
6-
"github.com/sentinel-group/sentinel-golang/core/log"
7-
"github.com/sentinel-group/sentinel-golang/core/stat"
8-
"github.com/sentinel-group/sentinel-golang/core/system"
4+
"github.com/alibaba/sentinel-golang/core/base"
5+
"github.com/alibaba/sentinel-golang/core/flow"
6+
"github.com/alibaba/sentinel-golang/core/log"
7+
"github.com/alibaba/sentinel-golang/core/stat"
8+
"github.com/alibaba/sentinel-golang/core/system"
99
)
1010

1111
var globalSlotChain = BuildDefaultSlotChain()

core/base/metric_item.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strconv"
77
"strings"
88

9-
"github.com/sentinel-group/sentinel-golang/util"
9+
"github.com/alibaba/sentinel-golang/util"
1010
)
1111

1212
const metricPartSeparator = "|"

core/base/slot_chain.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package base
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/logging"
5-
"github.com/sentinel-group/sentinel-golang/util"
4+
"github.com/alibaba/sentinel-golang/logging"
5+
"github.com/alibaba/sentinel-golang/util"
66
"sync"
77
)
88

core/config/local_storage.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package config
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/logging"
5-
"github.com/sentinel-group/sentinel-golang/util"
4+
"github.com/alibaba/sentinel-golang/logging"
5+
"github.com/alibaba/sentinel-golang/util"
66
"gopkg.in/yaml.v2"
77
"io/ioutil"
88
"os"

core/flow/rule_manager.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"encoding/json"
55
"fmt"
66
"github.com/pkg/errors"
7-
"github.com/sentinel-group/sentinel-golang/logging"
8-
"github.com/sentinel-group/sentinel-golang/util"
7+
"github.com/alibaba/sentinel-golang/logging"
8+
"github.com/alibaba/sentinel-golang/util"
99
"sync"
1010
)
1111

core/flow/slot.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package flow
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
5-
"github.com/sentinel-group/sentinel-golang/core/stat"
4+
"github.com/alibaba/sentinel-golang/core/base"
5+
"github.com/alibaba/sentinel-golang/core/stat"
66
"time"
77
)
88

core/flow/tc_default.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package flow
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
)
66

77
type DefaultTrafficShapingCalculator struct {

core/flow/tc_throttling.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package flow
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
5-
"github.com/sentinel-group/sentinel-golang/util"
4+
"github.com/alibaba/sentinel-golang/core/base"
5+
"github.com/alibaba/sentinel-golang/util"
66
"math"
77
"sync/atomic"
88
"time"

core/flow/tc_throttling_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package flow
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
"github.com/stretchr/testify/assert"
66
"sync"
77
"sync/atomic"

core/flow/traffic_shaping.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package flow
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
)
66

77
// TrafficShapingCalculator calculates the actual traffic shaping threshold

core/log/metric/aggregator.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package metric
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
5-
"github.com/sentinel-group/sentinel-golang/core/config"
6-
"github.com/sentinel-group/sentinel-golang/core/stat"
7-
"github.com/sentinel-group/sentinel-golang/logging"
8-
"github.com/sentinel-group/sentinel-golang/util"
4+
"github.com/alibaba/sentinel-golang/core/base"
5+
"github.com/alibaba/sentinel-golang/core/config"
6+
"github.com/alibaba/sentinel-golang/core/stat"
7+
"github.com/alibaba/sentinel-golang/logging"
8+
"github.com/alibaba/sentinel-golang/util"
99
"sort"
1010
"sync"
1111
"time"

core/log/metric/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package metric
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
"io/ioutil"
66
"os"
77
"path/filepath"

core/log/metric/reader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package metric
33
import (
44
"bufio"
55
"github.com/pkg/errors"
6-
"github.com/sentinel-group/sentinel-golang/core/base"
6+
"github.com/alibaba/sentinel-golang/core/base"
77
"io"
88
"os"
99
)

core/log/metric/searcher.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package metric
33
import (
44
"encoding/binary"
55
"github.com/pkg/errors"
6-
"github.com/sentinel-group/sentinel-golang/core/base"
7-
"github.com/sentinel-group/sentinel-golang/util"
6+
"github.com/alibaba/sentinel-golang/core/base"
7+
"github.com/alibaba/sentinel-golang/util"
88
"io"
99
"os"
1010
"sync"

core/log/metric/writer.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"encoding/binary"
66
"fmt"
77
"github.com/pkg/errors"
8-
"github.com/sentinel-group/sentinel-golang/core/base"
9-
"github.com/sentinel-group/sentinel-golang/core/config"
10-
"github.com/sentinel-group/sentinel-golang/logging"
11-
"github.com/sentinel-group/sentinel-golang/util"
8+
"github.com/alibaba/sentinel-golang/core/base"
9+
"github.com/alibaba/sentinel-golang/core/config"
10+
"github.com/alibaba/sentinel-golang/logging"
11+
"github.com/alibaba/sentinel-golang/util"
1212
"os"
1313
"strconv"
1414
"strings"

core/log/slot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package log
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
)
66

77
type LogSlot struct {

core/stat/base/atomic_window_wrap_array_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package base
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/util"
4+
"github.com/alibaba/sentinel-golang/util"
55
"math/rand"
66
"reflect"
77
"sync"

core/stat/base/bucket_leap_array.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package base
33
import (
44
"fmt"
55
"github.com/pkg/errors"
6-
"github.com/sentinel-group/sentinel-golang/core/base"
7-
"github.com/sentinel-group/sentinel-golang/logging"
8-
"github.com/sentinel-group/sentinel-golang/util"
6+
"github.com/alibaba/sentinel-golang/core/base"
7+
"github.com/alibaba/sentinel-golang/logging"
8+
"github.com/alibaba/sentinel-golang/util"
99
"sync/atomic"
1010
)
1111

core/stat/base/bucket_leap_array_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"sync/atomic"
77
"testing"
88

9-
"github.com/sentinel-group/sentinel-golang/core/base"
10-
"github.com/sentinel-group/sentinel-golang/util"
9+
"github.com/alibaba/sentinel-golang/core/base"
10+
"github.com/alibaba/sentinel-golang/util"
1111
)
1212

1313
//Test sliding windows create buckets

core/stat/base/leap_array.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package base
33
import (
44
"fmt"
55
"github.com/pkg/errors"
6-
"github.com/sentinel-group/sentinel-golang/core/base"
7-
"github.com/sentinel-group/sentinel-golang/util"
6+
"github.com/alibaba/sentinel-golang/core/base"
7+
"github.com/alibaba/sentinel-golang/util"
88
"runtime"
99
"sync/atomic"
1010
"unsafe"

core/stat/base/leap_array_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"unsafe"
88

9-
"github.com/sentinel-group/sentinel-golang/util"
9+
"github.com/alibaba/sentinel-golang/util"
1010
"github.com/stretchr/testify/mock"
1111
)
1212

core/stat/base/metric_bucket.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package base
22

33
import (
44
"fmt"
5-
"github.com/sentinel-group/sentinel-golang/core/base"
5+
"github.com/alibaba/sentinel-golang/core/base"
66
"sync/atomic"
77
)
88

core/stat/base/metric_bucket_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package base
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
55
"sync"
66
"testing"
77
"unsafe"

core/stat/base/sliding_window_metric.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package base
22

33
import (
44
"fmt"
5-
"github.com/sentinel-group/sentinel-golang/core/base"
6-
"github.com/sentinel-group/sentinel-golang/util"
5+
"github.com/alibaba/sentinel-golang/core/base"
6+
"github.com/alibaba/sentinel-golang/util"
77
"sync/atomic"
88
)
99

core/stat/base/sliding_window_metric_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"testing"
77

8-
"github.com/sentinel-group/sentinel-golang/core/base"
8+
"github.com/alibaba/sentinel-golang/core/base"
99
)
1010

1111
func TestSlidingWindowMetric_getBucketStartRange(t *testing.T) {

core/stat/base_node.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package stat
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
5-
sbase "github.com/sentinel-group/sentinel-golang/core/stat/base"
4+
"github.com/alibaba/sentinel-golang/core/base"
5+
sbase "github.com/alibaba/sentinel-golang/core/stat/base"
66
"sync/atomic"
77
)
88

core/stat/node_storage.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package stat
22

33
import (
4-
"github.com/sentinel-group/sentinel-golang/core/base"
5-
"github.com/sentinel-group/sentinel-golang/logging"
4+
"github.com/alibaba/sentinel-golang/core/base"
5+
"github.com/alibaba/sentinel-golang/logging"
66
"sync"
77
)
88

core/stat/resource_node.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ package stat
22

33
import (
44
"fmt"
5-
"github.com/sentinel-group/sentinel-golang/core/base"
6-
sbase "github.com/sentinel-group/sentinel-golang/core/stat/base"
5+
"github.com/alibaba/sentinel-golang/core/base"
6+
sbase "github.com/alibaba/sentinel-golang/core/stat/base"
77
"sync"
88
)
99

core/stat/resource_node_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync"
77
"testing"
88

9-
"github.com/sentinel-group/sentinel-golang/core/base"
9+
"github.com/alibaba/sentinel-golang/core/base"
1010
)
1111

1212
func TestResourceNode_GetOrCreateSlidingWindowMetric(t *testing.T) {

0 commit comments

Comments
 (0)