Skip to content

Commit

Permalink
Change module address to fork
Browse files Browse the repository at this point in the history
  • Loading branch information
foadnh committed Aug 24, 2022
1 parent 4f106c0 commit 39b7ebc
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 11 deletions.
3 changes: 2 additions & 1 deletion aggregate/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"crypto/md5"
"fmt"

"github.com/aws/amazon-kinesis-streams-for-fluent-bit/util"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/kinesis"
"github.com/sirupsen/logrus"
"google.golang.org/protobuf/encoding/protowire"
"google.golang.org/protobuf/proto"

"github.com/canva/amazon-kinesis-streams-for-fluent-bit/util"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion aggregate/aggregator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package aggregate
import (
"testing"

"github.com/aws/amazon-kinesis-streams-for-fluent-bit/util"
"github.com/stretchr/testify/assert"

"github.com/canva/amazon-kinesis-streams-for-fluent-bit/util"
)

const concurrencyRetryLimit = 4
Expand Down
3 changes: 2 additions & 1 deletion fluent-bit-kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ import (
"unsafe"

"github.com/aws/amazon-kinesis-firehose-for-fluent-bit/plugins"
"github.com/aws/amazon-kinesis-streams-for-fluent-bit/kinesis"
kinesisAPI "github.com/aws/aws-sdk-go/service/kinesis"
"github.com/fluent/fluent-bit-go/output"
"github.com/sirupsen/logrus"

"github.com/canva/amazon-kinesis-streams-for-fluent-bit/kinesis"
)

const (
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/aws/amazon-kinesis-streams-for-fluent-bit
module github.com/canva/amazon-kinesis-streams-for-fluent-bit

go 1.17

Expand Down
8 changes: 5 additions & 3 deletions kinesis/kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.

//go:generate mockgen -destination mock_kinesis/mock_kinesis.go -copyright_file=../COPYRIGHT github.com/aws/amazon-kinesis-streams-for-fluent-bit/kinesis PutRecordsClient
//go:generate mockgen -destination mock_kinesis/mock_kinesis.go -copyright_file=../COPYRIGHT github.com/canva/amazon-kinesis-streams-for-fluent-bit/kinesis PutRecordsClient

// Package kinesis contains the OutputPlugin which sends log records to Kinesis Stream
package kinesis
Expand All @@ -30,8 +30,6 @@ import (
"time"

"github.com/aws/amazon-kinesis-firehose-for-fluent-bit/plugins"
"github.com/aws/amazon-kinesis-streams-for-fluent-bit/aggregate"
"github.com/aws/amazon-kinesis-streams-for-fluent-bit/util"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
Expand All @@ -43,6 +41,10 @@ import (
jsoniter "github.com/json-iterator/go"
"github.com/lestrrat-go/strftime"
"github.com/sirupsen/logrus"

"github.com/canva/amazon-kinesis-streams-for-fluent-bit/util"

"github.com/canva/amazon-kinesis-streams-for-fluent-bit/aggregate"
)

const (
Expand Down
9 changes: 6 additions & 3 deletions kinesis/kinesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ import (
"time"

"github.com/aws/amazon-kinesis-firehose-for-fluent-bit/plugins"
"github.com/aws/amazon-kinesis-streams-for-fluent-bit/aggregate"
"github.com/aws/amazon-kinesis-streams-for-fluent-bit/kinesis/mock_kinesis"
"github.com/aws/amazon-kinesis-streams-for-fluent-bit/util"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/kinesis"
fluentbit "github.com/fluent/fluent-bit-go/output"
"github.com/golang/mock/gomock"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"

"github.com/canva/amazon-kinesis-streams-for-fluent-bit/util"

"github.com/canva/amazon-kinesis-streams-for-fluent-bit/kinesis/mock_kinesis"

"github.com/canva/amazon-kinesis-streams-for-fluent-bit/aggregate"
)

const concurrencyRetryLimit = 4
Expand Down
2 changes: 1 addition & 1 deletion kinesis/mock_kinesis/mock_kinesis.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39b7ebc

Please sign in to comment.