Skip to content

Commit

Permalink
move pkg to internal (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybase committed May 8, 2023
1 parent 5ebea73 commit acec303
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion circuitbreaker/sre/sre.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/go-kratos/aegis/circuitbreaker"
"github.com/go-kratos/aegis/pkg/window"
"github.com/go-kratos/aegis/internal/window"
)

// Option is sre breaker option function.
Expand Down
2 changes: 1 addition & 1 deletion circuitbreaker/sre/sre_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/go-kratos/aegis/pkg/window"
"github.com/go-kratos/aegis/internal/window"
"github.com/stretchr/testify/assert"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion pkg/cpu/stat_test.go → internal/cpu/stat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
)

func TestStat(t *testing.T) {
time.Sleep(time.Second * 2)
time.Sleep(time.Second * 3)

var s Stat
var i Info
ReadStat(&s)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions ratelimit/bbr/bbr.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sync/atomic"
"time"

"github.com/go-kratos/aegis/pkg/cpu"
"github.com/go-kratos/aegis/pkg/window"
"github.com/go-kratos/aegis/internal/cpu"
"github.com/go-kratos/aegis/internal/window"
"github.com/go-kratos/aegis/ratelimit"
)

Expand Down
2 changes: 1 addition & 1 deletion ratelimit/bbr/bbr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/go-kratos/aegis/pkg/window"
"github.com/go-kratos/aegis/internal/window"
"github.com/go-kratos/aegis/ratelimit"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion subset/subset.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package subset

import (
"github.com/go-kratos/aegis/consistent"
"github.com/go-kratos/aegis/internal/consistent"
)

func Subset[M consistent.Member](selectKey string, inss []M, num int) []M {
Expand Down
2 changes: 1 addition & 1 deletion subset/subset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"math/rand"
"testing"

"github.com/go-kratos/aegis/consistent"
"github.com/go-kratos/aegis/internal/consistent"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion topk/heavykeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"math"
"math/rand"

"github.com/go-kratos/aegis/pkg/minheap"
"github.com/go-kratos/aegis/internal/minheap"

"github.com/twmb/murmur3"
)
Expand Down

0 comments on commit acec303

Please sign in to comment.