github
417 of 656 new or added lines in 6 files covered. (63.57%)
417 of 656 relevant lines covered (63.57%)
0.68 hits per line
1 |
package stream
|
|
2 |
|
|
3 |
import "time" |
|
4 |
|
|
5 |
type Option func(*Opts) |
|
6 |
|
|
|
func WithS3(api S3) Option {
|
1✔ |
|
return func(sfs *Opts) { |
2✔ |
|
sfs.api = api |
1✔ |
|
} |
1✔ |
11 |
} |
|
12 |
|
|
|
func WithS3Upload(api S3Upload) Option {
|
1✔ |
|
return func(sfs *Opts) { |
2✔ |
|
sfs.upload = api |
1✔ |
|
} |
1✔ |
17 |
} |
|
18 |
|
|
|
func WithS3Signer(api S3Signer) Option {
|
1✔ |
|
return func(sfs *Opts) { |
2✔ |
|
sfs.signer = api |
1✔ |
|
} |
1✔ |
23 |
} |
|
24 |
|
|
NEW
|
func WithIOTimeout(t time.Duration) Option {
|
× |
NEW
|
return func(sfs *Opts) { |
× |
NEW
|
sfs.timeout = t |
× |
NEW
|
} |
× |
29 |
} |
|
30 |
|
|
NEW
|
func WithPreSignUrlTTL(t time.Duration) Option {
|
× |
NEW
|
return func(sfs *Opts) { |
× |
NEW
|
sfs.ttlSignedUrl = t |
× |
NEW
|
} |
× |
35 |
} |
|
36 |
|
|
NEW
|
func WithListingLimit(limit int32) Option { |
× |
NEW
|
return func(sfs *Opts) { |
× |
NEW
|
sfs.lslimit = limit |
× |
NEW
|
} |
× |
41 |
} |