-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: updating project layout (#17)
- Loading branch information
1 parent
dba03b9
commit 5893560
Showing
15 changed files
with
82 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// This package implements a topic management strategy which consumes messages with cron based manner. | ||
// Package cronsumer This package implements a topic management strategy which consumes messages with cron based manner. | ||
// It mainly created for exception/retry management. | ||
package kcronsumer | ||
package cronsumer | ||
|
||
import ( | ||
"github.com/Trendyol/kafka-cronsumer/internal/kafka" | ||
. "github.com/Trendyol/kafka-cronsumer/pkg/kafka" //nolint:revive | ||
"github.com/Trendyol/kafka-cronsumer/internal" | ||
"github.com/Trendyol/kafka-cronsumer/pkg/kafka" | ||
) | ||
|
||
// NewCronsumer returns the newly created kafka consumer instance. | ||
// New returns the newly created kafka consumer instance. | ||
// config.Config specifies cron, duration and so many parameters. | ||
// ConsumeFn describes how to consume messages from specified topic. | ||
func NewCronsumer(cfg *Config, c ConsumeFn) Cronsumer { | ||
return kafka.NewCronsumer(cfg, c) | ||
func New(cfg *kafka.Config, c kafka.ConsumeFn) kafka.Cronsumer { | ||
return internal.NewCronsumer(cfg, c) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package kafka | ||
package internal | ||
|
||
import ( | ||
"bytes" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package sasl | ||
package internal | ||
|
||
import ( | ||
"crypto/tls" | ||
|
Oops, something went wrong.