Add WithGroup option

This commit is contained in:
Harlow Ward 2019-07-28 21:34:54 -07:00
parent a9c97d3b93
commit 5da0865ac1

View file

@ -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) {