Versions in this module Expand all Collapse all v0 v0.0.25 Jul 15, 2024 Changes in this version + type Buckets struct + type NamedRule struct + Name string + Rule Rule + type Params struct + Ctx context.Context + Lc fx.Lifecycle + Loader *config.Loader + Log *slog.Logger + Storage *storage.Storage + type Paste struct + func (o *Paste) PrepareUpload(bucket string, uploadedFile string, rd io.Reader, extra *storage.Metadata) (*Upload, error) + func (o *Paste) ReadPaste(w http.ResponseWriter, r *http.Request, bucket string, filename string) error + func (o *Paste) Upload(ctx context.Context, w io.Writer, args *Upload) error + type Result struct + Output *Paste + func New(p Params) (r Result, err error) + type Rule func(*Upload) + func Rules(xs ...Rule) Rule + type Upload struct + Bucket string + Extra *storage.Metadata + Filename string + OriginalFilename string + Reader io.Reader