Skip to content

Commit 283ac88

Browse files
committed
project structure refactored
1 parent 42c8a23 commit 283ac88

Some content is hidden

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

42 files changed

+42
-45
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
bin/
2-
.token
3-
main.exe

pkg/cache/cache.go renamed to cache/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cache
22

33
import (
4-
"github.com/wings-software/ff-client-sdk-go/pkg/logger"
4+
"github.com/wings-software/ff-client-sdk-go/logger"
55
"time"
66
)
77

pkg/cache/lru.go renamed to cache/lru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package cache
22

33
import (
44
lru "github.com/hashicorp/golang-lru"
5-
"github.com/wings-software/ff-client-sdk-go/pkg/logger"
5+
"github.com/wings-software/ff-client-sdk-go/logger"
66
"reflect"
77
"time"
88
)

pkg/cache/persist.go renamed to cache/persist.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package cache
22

33
import (
44
"github.com/mitchellh/mapstructure"
5-
"github.com/wings-software/ff-client-sdk-go/pkg/evaluation"
6-
"github.com/wings-software/ff-client-sdk-go/pkg/dto"
7-
"github.com/wings-software/ff-client-sdk-go/pkg/logger"
8-
"github.com/wings-software/ff-client-sdk-go/pkg/storage"
5+
"github.com/wings-software/ff-client-sdk-go/dto"
6+
"github.com/wings-software/ff-client-sdk-go/evaluation"
7+
"github.com/wings-software/ff-client-sdk-go/logger"
8+
"github.com/wings-software/ff-client-sdk-go/storage"
99
)
1010

1111
type Persistence struct {

pkg/client/client.go renamed to client/client.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import (
99
"github.com/dgrijalva/jwt-go"
1010
"github.com/hashicorp/go-retryablehttp"
1111
"github.com/r3labs/sse"
12-
"github.com/wings-software/ff-client-sdk-go/pkg"
13-
"github.com/wings-software/ff-client-sdk-go/pkg/cache"
14-
"github.com/wings-software/ff-client-sdk-go/pkg/dto"
15-
"github.com/wings-software/ff-client-sdk-go/pkg/evaluation"
16-
"github.com/wings-software/ff-client-sdk-go/pkg/rest"
17-
"github.com/wings-software/ff-client-sdk-go/pkg/stream"
18-
"github.com/wings-software/ff-client-sdk-go/pkg/types"
12+
"github.com/wings-software/ff-client-sdk-go"
13+
"github.com/wings-software/ff-client-sdk-go/cache"
14+
"github.com/wings-software/ff-client-sdk-go/dto"
15+
"github.com/wings-software/ff-client-sdk-go/evaluation"
16+
"github.com/wings-software/ff-client-sdk-go/rest"
17+
"github.com/wings-software/ff-client-sdk-go/stream"
18+
"github.com/wings-software/ff-client-sdk-go/types"
1919
"log"
2020
"strings"
2121
"sync"
@@ -57,7 +57,7 @@ func NewCfClient(sdkKey string, options ...ConfigOption) (*CfClient, error) {
5757
ctx, client.cancelFunc = context.WithCancel(context.Background())
5858

5959
if sdkKey == "" {
60-
return client, pkg.ErrSdkCantBeEmpty
60+
return client, ff_golang_server_sdk.ErrSdkCantBeEmpty
6161
}
6262

6363
client.persistence = cache.NewPersistence(config.Store, config.Cache, config.Logger)

pkg/client/config.go renamed to client/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package client
22

33
import (
4-
"github.com/wings-software/ff-client-sdk-go/pkg/cache"
5-
"github.com/wings-software/ff-client-sdk-go/pkg/logger"
6-
"github.com/wings-software/ff-client-sdk-go/pkg/storage"
4+
"github.com/wings-software/ff-client-sdk-go/cache"
5+
"github.com/wings-software/ff-client-sdk-go/logger"
6+
"github.com/wings-software/ff-client-sdk-go/storage"
77
"log"
88
)
99

File renamed without changes.

pkg/client/options.go renamed to client/options.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package client
22

33
import (
4-
"github.com/wings-software/ff-client-sdk-go/pkg/cache"
5-
"github.com/wings-software/ff-client-sdk-go/pkg/logger"
6-
"github.com/wings-software/ff-client-sdk-go/pkg/storage"
4+
"github.com/wings-software/ff-client-sdk-go/cache"
5+
"github.com/wings-software/ff-client-sdk-go/logger"
6+
"github.com/wings-software/ff-client-sdk-go/storage"
77
)
88

99
type ConfigOption func(config *Config)
File renamed without changes.

pkg/dto/target_builder.go renamed to dto/target_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dto
22

33
import (
4-
"github.com/wings-software/ff-client-sdk-go/pkg/evaluation"
4+
"github.com/wings-software/ff-client-sdk-go/evaluation"
55
)
66

77
// TargetBuilderInterface used for fluent builder methods

0 commit comments

Comments
 (0)