kinesis-consumer/store/redis/options.go

14 lines
314 B
Go
Raw Normal View History

package redis
2024-04-10 12:58:37 +00:00
import "github.com/redis/go-redis/v9"
// Option is used to override defaults when creating a new Redis checkpoint
type Option func(*Checkpoint)
// WithClient overrides the default client
func WithClient(client redis.UniversalClient) Option {
return func(c *Checkpoint) {
c.client = client
}
}