Versions in this module Expand all Collapse all v0 v0.5.1 Jul 13, 2022 v0.5.0 Jul 13, 2022 Changes in this version + const AwsEuCentral1 + const AwsEuWest1 + const AwsUsEast1 + const AwsUsWest1 + const FILE + const HTTP + const HTTPS + const S3 + var ErrInvalidURL = errors.New("monk: invalid url") + var ErrUnimplementedScheme = errors.New("monk: unimplemented scheme") + var WithContext = func(ctx context.Context) Option + var WithHeaders = func(h map[string]string) Option + var WithHttpClient = func(h *http.Client) Option + var WithMethod = func(m string) Option + var WithS3ClientFunc = func(s3ClientFunc S3ClientFunc) Option + func Read(l string, options ...ReaderOption) ([]byte, error) + func Write(data []byte, l string, options ...WriterOption) error + type Option func(*configuration) + func (o Option) ConfigureReader(r *Reader) + func (o Option) ConfigureWriter(w *Writer) + type ReadHandler struct + Fn func(*Reader) ([]byte, error) + Scheme string + type Reader struct + func NewReader(l string, opts ...ReaderOption) *Reader + func (r *Reader) Read(b []byte) (n int, err error) + type ReaderOption interface + ConfigureReader func(r *Reader) + type S3ClientFunc func(ctx context.Context) (S3ReadWriter, error) + type S3ReadWriter interface + type S3Reader interface + GetObject func(ctx context.Context, input *s3.GetObjectInput, opts ...func(*s3.Options)) (*s3.GetObjectOutput, error) + type S3Writer interface + PutObject func(ctx context.Context, input *s3.PutObjectInput, opts ...func(*s3.Options)) (*s3.PutObjectOutput, error) + type WriteHandler struct + Fn func(*Writer) error + Scheme string + type Writer struct + func NewWriter(l string, opts ...WriterOption) *Writer + func (w *Writer) Write(p []byte) (n int, err error) + type WriterOption interface + ConfigureWriter func(w *Writer)