Skip to content

Commit 78ea4f3

Browse files
author
Nishchal Gautam
committed
feat: add an encoding package
1 parent dda2c8f commit 78ea4f3

File tree

9 files changed

+28
-6
lines changed

9 files changed

+28
-6
lines changed

.github/workflows/snyk.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: snyk-go
2+
permissions:
3+
contents: read
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
- master
10+
pull_request:
11+
types:
12+
- opened
13+
- edited
14+
- synchronize
15+
16+
jobs:
17+
repository-snyk-go:
18+
name: repository-snyk-go
19+
uses: honestbank/workflows/.github/workflows/shared-snyk-go.yaml@main
20+
with:
21+
org_id: 8a07b336-2638-4096-8c8c-25f891be99e8
22+
secrets: inherit

v2/kp_example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111
v2 "github.com/honestbank/kp/v2"
1212
"github.com/honestbank/kp/v2/config"
1313
consumer2 "github.com/honestbank/kp/v2/consumer"
14-
"github.com/honestbank/kp/v2/internal/serialization"
1514
"github.com/honestbank/kp/v2/middlewares/consumer"
1615
"github.com/honestbank/kp/v2/middlewares/deadletter"
1716
"github.com/honestbank/kp/v2/middlewares/retry"
1817
"github.com/honestbank/kp/v2/middlewares/retry_count"
1918
"github.com/honestbank/kp/v2/producer"
19+
"github.com/honestbank/kp/v2/serialization"
2020
)
2121

2222
type UserLoggedInEvent struct {

v2/middlewares/consumer/consumer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/confluentinc/confluent-kafka-go/v2/kafka"
99
"github.com/stretchr/testify/assert"
1010

11-
"github.com/honestbank/kp/v2/internal/serialization"
1211
"github.com/honestbank/kp/v2/middlewares/consumer"
12+
"github.com/honestbank/kp/v2/serialization"
1313
)
1414

1515
type mockConsumer struct {

v2/producer/producer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77

88
"github.com/honestbank/kp/v2/config"
99
"github.com/honestbank/kp/v2/internal/schemaregistry"
10-
"github.com/honestbank/kp/v2/internal/serialization"
1110
"github.com/honestbank/kp/v2/internal/tracing"
11+
"github.com/honestbank/kp/v2/serialization"
1212
)
1313

1414
type producer[BodyType any] struct {

v2/producer/producer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import (
1515
"github.com/confluentinc/confluent-kafka-go/v2/schemaregistry/serde/avro"
1616
"github.com/stretchr/testify/assert"
1717

18-
"github.com/honestbank/kp/v2/internal/serialization"
1918
"github.com/honestbank/kp/v2/producer"
19+
"github.com/honestbank/kp/v2/serialization"
2020
)
2121

2222
type MyMessage struct {

v2/internal/serialization/benchmark_test.go renamed to v2/serialization/benchmark_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/confluentinc/confluent-kafka-go/v2/schemaregistry/serde/avro"
1212
"github.com/stretchr/testify/assert"
1313

14-
"github.com/honestbank/kp/v2/internal/serialization"
14+
"github.com/honestbank/kp/v2/serialization"
1515
)
1616

1717
func BenchmarkEncode(b *testing.B) {
File renamed without changes.
File renamed without changes.

v2/internal/serialization/serialization_test.go renamed to v2/serialization/serialization_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/confluentinc/confluent-kafka-go/v2/schemaregistry/serde/avro"
1313
"github.com/stretchr/testify/assert"
1414

15-
"github.com/honestbank/kp/v2/internal/serialization"
15+
"github.com/honestbank/kp/v2/serialization"
1616
)
1717

1818
type BenchmarkMessage struct {

0 commit comments

Comments
 (0)