reader

package
v0.0.56 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(r *reader)

Option represents the functional option for reader.

func WithBackoff added in v0.0.43

func WithBackoff(enabled bool) Option

WithBackoff returns the option to set the backoffEnabled.

func WithBackoffOpts added in v0.0.43

func WithBackoffOpts(opts ...backoff.Option) Option

WithBackoffOpts returns the option to set the backoffOpts.

func WithBucket

func WithBucket(bucket string) Option

WithBucket returns the option to set the bucket.

func WithErrGroup added in v0.0.41

func WithErrGroup(eg errgroup.Group) Option

WithErrGroup returns the option to set the eg.

func WithKey

func WithKey(key string) Option

WithKey returns the option to set the key.

func WithMaxChunkSize added in v0.0.43

func WithMaxChunkSize(size int64) Option

WithMaxChunkSize retunrs the option to set the maxChunkSize.

func WithService

func WithService(s *s3.S3) Option

WithService returns the option to set the service.

type Reader

type Reader interface {
	Open(ctx context.Context) error
	io.ReadCloser
}

func New

func New(opts ...Option) Reader

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL