Add WithGroup option
This commit is contained in:
parent
a9c97d3b93
commit
5da0865ac1
1 changed files with 7 additions and 0 deletions
|
|
@ -5,6 +5,13 @@ import "github.com/aws/aws-sdk-go/service/kinesis/kinesisiface"
|
|||
// Option is used to override defaults when creating a new Consumer
|
||||
type Option func(*Consumer)
|
||||
|
||||
// WithGroup overrides the default storage
|
||||
func WithGroup(group Group) Option {
|
||||
return func(c *Consumer) {
|
||||
c.group = group
|
||||
}
|
||||
}
|
||||
|
||||
// WithStore overrides the default storage
|
||||
func WithStore(store Store) Option {
|
||||
return func(c *Consumer) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue