local

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func New

func New(basePath, baseURL string) (*Provider, error)

func (*Provider) Delete

func (p *Provider) Delete(ctx context.Context, path string) error

func (*Provider) Download

func (p *Provider) Download(ctx context.Context, path string) (io.ReadCloser, error)

func (*Provider) List

func (p *Provider) List(ctx context.Context, prefix string) ([]models.FileInfo, error)

func (*Provider) ServeFile

func (p *Provider) ServeFile(w http.ResponseWriter, r *http.Request, key string)

Helper function to serve files via HTTP

func (*Provider) Upload

func (p *Provider) Upload(ctx context.Context, input *models.UploadInput) (*models.UploadOutput, error)

Jump to

Keyboard shortcuts

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