Skip to content

Commit 24c1571

Browse files
authored
Merge pull request #62 from hellofresh/major/tag-v2
Bumped go package to v2
2 parents eab73a0 + 37952bc commit 24c1571

File tree

104 files changed

+487
-445
lines changed

Some content is hidden

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

104 files changed

+487
-445
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GoEngine [![GitHub][license-img]][license] [![GoDoc][doc-img]][doc] [![Build Status][ci-img]][ci] [![Go Report Card][go-report-img]][go-report]
1+
# GoEngine [![GitHub][license-img]][license] [![GoDoc][doc-img]][doc] [![Go Report Card][go-report-img]][go-report]
22

33
GoEngine is an Event Sourcing library written for GoLang.
44

@@ -8,7 +8,7 @@ implementing your Domains and Business logic!
88
## Installation
99

1010
```BASH
11-
go get -u github.com/hellofresh/goengine
11+
go get -u github.com/hellofresh/goengine/v2
1212
```
1313

1414
## Documentation
@@ -24,7 +24,7 @@ The following features are planned for the future (in no specific order)
2424
* Support for Snapshots
2525
* Inmemory Projection support
2626
* Creating Linked EventStreams
27-
* Distributes tracing (using [opencensus](https://opencensus.io/) and/or [opentracing](https://opentracing.io/))
27+
* Distributes tracing (using [OpenTelemetry](https://opentelemetry.io/)
2828
* ...
2929

3030
## Contributing
@@ -41,9 +41,7 @@ Details are in the [contribution guide](CONTRIBUTING.md) and the [code of conduc
4141

4242

4343
[doc-img]: https://godoc.org/github.com/hellofresh?status.svg
44-
[doc]: https://godoc.org/github.com/hellofresh/goengine
45-
[ci-img]: https://travis-ci.org/hellofresh/goengine.svg?branch=master
46-
[ci]: https://travis-ci.org/hellofresh/goengine
44+
[doc]: https://godoc.org/github.com/hellofresh/goengine/v2
4745
[cov-img]: https://img.shields.io/codecov/c/github/hellofresh/goengine.svg
4846
[license-img]: https://img.shields.io/github/license/hellofresh/goengine.svg?style=flat
4947
[license]: LICENSE

aggregate/aggregate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"time"
66

77
"github.com/google/uuid"
8-
"github.com/hellofresh/goengine"
9-
"github.com/hellofresh/goengine/metadata"
8+
"github.com/hellofresh/goengine/v2"
9+
"github.com/hellofresh/goengine/v2/metadata"
1010
)
1111

1212
// ErrInvalidID occurs when a string is not a valid ID
@@ -23,7 +23,7 @@ type (
2323

2424
EventApplier
2525

26-
// ID returns the aggregateID
26+
// AggregateID returns the aggregateID
2727
AggregateID() ID
2828
}
2929

aggregate/aggregate_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build unit
12
// +build unit
23

34
package aggregate_test
@@ -6,9 +7,8 @@ import (
67
"testing"
78

89
"github.com/golang/mock/gomock"
9-
10-
"github.com/hellofresh/goengine/aggregate"
11-
mocks "github.com/hellofresh/goengine/mocks/aggregate"
10+
"github.com/hellofresh/goengine/v2/aggregate"
11+
mocks "github.com/hellofresh/goengine/v2/mocks/aggregate"
1212
"github.com/stretchr/testify/assert"
1313
)
1414

aggregate/aggregate_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"reflect"
66

7-
"github.com/hellofresh/goengine"
7+
"github.com/hellofresh/goengine/v2"
88
)
99

1010
// ErrInitiatorMustReturnRoot occurs when a aggregate.Initiator did not return a pointer

aggregate/aggregate_type_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
//go:build unit
12
// +build unit
23

34
package aggregate_test
45

56
import (
67
"testing"
78

8-
"github.com/hellofresh/goengine"
9-
"github.com/hellofresh/goengine/aggregate"
10-
mocks "github.com/hellofresh/goengine/mocks/aggregate"
9+
"github.com/hellofresh/goengine/v2"
10+
"github.com/hellofresh/goengine/v2/aggregate"
11+
mocks "github.com/hellofresh/goengine/v2/mocks/aggregate"
1112
"github.com/stretchr/testify/assert"
1213
)
1314

aggregate/base_root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package aggregate
33
import (
44
"sync"
55

6-
"github.com/hellofresh/goengine"
6+
"github.com/hellofresh/goengine/v2"
77
)
88

99
var (

aggregate/changed.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"errors"
55
"time"
66

7-
"github.com/hellofresh/goengine"
8-
"github.com/hellofresh/goengine/metadata"
7+
"github.com/hellofresh/goengine/v2"
8+
"github.com/hellofresh/goengine/v2/metadata"
99
)
1010

1111
var (

aggregate/changed_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build unit
12
// +build unit
23

34
package aggregate_test
@@ -8,9 +9,9 @@ import (
89

910
"github.com/stretchr/testify/require"
1011

11-
"github.com/hellofresh/goengine"
12-
"github.com/hellofresh/goengine/aggregate"
13-
"github.com/hellofresh/goengine/metadata"
12+
"github.com/hellofresh/goengine/v2"
13+
"github.com/hellofresh/goengine/v2/aggregate"
14+
"github.com/hellofresh/goengine/v2/metadata"
1415
"github.com/stretchr/testify/assert"
1516
)
1617

aggregate/repository.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"errors"
66

7-
"github.com/hellofresh/goengine"
8-
"github.com/hellofresh/goengine/metadata"
7+
"github.com/hellofresh/goengine/v2"
8+
"github.com/hellofresh/goengine/v2/metadata"
99
)
1010

1111
const (

aggregate/repository_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build unit
12
// +build unit
23

34
package aggregate_test
@@ -9,12 +10,12 @@ import (
910
"time"
1011

1112
"github.com/golang/mock/gomock"
12-
"github.com/hellofresh/goengine"
13-
"github.com/hellofresh/goengine/aggregate"
14-
"github.com/hellofresh/goengine/driver/inmemory"
15-
"github.com/hellofresh/goengine/metadata"
16-
"github.com/hellofresh/goengine/mocks"
17-
aggregateMocks "github.com/hellofresh/goengine/mocks/aggregate"
13+
"github.com/hellofresh/goengine/v2"
14+
"github.com/hellofresh/goengine/v2/aggregate"
15+
"github.com/hellofresh/goengine/v2/driver/inmemory"
16+
"github.com/hellofresh/goengine/v2/metadata"
17+
"github.com/hellofresh/goengine/v2/mocks"
18+
aggregateMocks "github.com/hellofresh/goengine/v2/mocks/aggregate"
1819
"github.com/stretchr/testify/assert"
1920
"github.com/stretchr/testify/require"
2021
)

0 commit comments

Comments
 (0)