Versions in this module Expand all Collapse all v0 v0.1.0 Jul 5, 2026 Changes in this version + var ErrNotFound = errors.New("upload object not found") + type Local struct + func NewLocal(dir string) *Local + func (s *Local) Delete(_ context.Context, path string) error + func (s *Local) Save(_ context.Context, body io.Reader, _ SaveOptions) (SavedObject, error) + func (s *Local) ServeHTTP(w http.ResponseWriter, r *http.Request, object Object) error + type Object struct + ByteSize int64 + ContentType string + Filename string + Path string + type R2 struct + func NewR2(cfg R2Config) (*R2, error) + func (s *R2) Delete(ctx context.Context, objectPath string) error + func (s *R2) Save(ctx context.Context, body io.Reader, options SaveOptions) (SavedObject, error) + func (s *R2) ServeHTTP(w http.ResponseWriter, r *http.Request, object Object) error + type R2Config struct + AccessKeyID string + AccountID string + Bucket string + Endpoint string + HTTPClient *http.Client + Prefix string + Region string + SecretAccessKey string + type SaveOptions struct + ContentType string + type SavedObject struct + ByteSize int64 + Path string + type Store interface + Delete func(ctx context.Context, path string) error + Save func(ctx context.Context, body io.Reader, options SaveOptions) (SavedObject, error) + ServeHTTP func(w http.ResponseWriter, r *http.Request, object Object) error