upload

package
v0.0.0-...-d2bc1ab Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileProvider

type FileProvider struct {
	BaseFolder string
}

func (FileProvider) Get

func (f FileProvider) Get(namespace string, id string) (io.ReadCloser, error)

func (FileProvider) Put

func (f FileProvider) Put(namespace string, filename string, body io.Reader) (string, error)

type S3Provider

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

func (S3Provider) Get

func (s S3Provider) Get(namespace string, id string) (io.ReadCloser, error)

func (S3Provider) Put

func (s S3Provider) Put(namespace string, filename string, body io.Reader) (string, error)

type Uploader

type Uploader interface {
	Put(namespace string, filename string, body io.Reader) (string, error)
	Get(namespace string, id string) (io.ReadCloser, error)
}

Jump to

Keyboard shortcuts

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