reader

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 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)

func WithBackoff added in v0.0.43

func WithBackoff(enabled bool) Option

func WithBackoffOpts added in v0.0.43

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

func WithBucket

func WithBucket(bucket string) Option

func WithErrGroup added in v0.0.41

func WithErrGroup(eg errgroup.Group) Option

func WithKey

func WithKey(key string) Option

func WithMaxChunkSize added in v0.0.43

func WithMaxChunkSize(size int64) Option

func WithService

func WithService(s *s3.S3) Option

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