Skip to content

Commit

Permalink
rename mod to aegis
Browse files Browse the repository at this point in the history
  • Loading branch information
tonybase committed Sep 5, 2021
1 parent b5f23c3 commit ed7048a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Sra
# Aegis
Service Reliability Algorithm

## List
## Features

- [breaker](./breaker)
- [circuitbreaker](./circuitbreaker)
- [ratelimit](./ratelimit)
4 changes: 2 additions & 2 deletions circuitbreaker/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/go-kratos/sra/circuitbreaker"
"github.com/go-kratos/sra/circuitbreaker/sre"
"github.com/go-kratos/aegis/circuitbreaker"
"github.com/go-kratos/aegis/circuitbreaker/sre"
)

// This is a example of using a circuit breaker Do() when return nil.
Expand Down
4 changes: 2 additions & 2 deletions circuitbreaker/sre/sre.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"sync/atomic"
"time"

"github.com/go-kratos/sra/circuitbreaker"
"github.com/go-kratos/sra/pkg/window"
"github.com/go-kratos/aegis/circuitbreaker"
"github.com/go-kratos/aegis/pkg/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/sra/pkg/window"
"github.com/go-kratos/aegis/pkg/window"
"github.com/stretchr/testify/assert"
)

Expand Down
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/go-kratos/sra
module github.com/go-kratos/aegis

go 1.15

Expand Down
7 changes: 3 additions & 4 deletions ratelimit/bbr/bbr.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import (
"sync/atomic"
"time"

"github.com/go-kratos/sra/pkg/cpu"
"github.com/go-kratos/sra/ratelimit"

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

var (
Expand Down
4 changes: 2 additions & 2 deletions ratelimit/bbr/bbr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

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

Expand Down

0 comments on commit ed7048a

Please sign in to comment.