handler

package
v0.0.0-...-1070708 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeWriterAt

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

FakeWriterAt Ref: https://dev.to/flowup/using-io-reader-io-writer-in-go-to-stream-data-3i7b

func (FakeWriterAt) WriteAt

func (fw FakeWriterAt) WriteAt(p []byte, _ int64) (n int, err error)

type ObjectHandler

type ObjectHandler struct {
	Uploader   *s3manager.Uploader
	Downloader *s3manager.Downloader
}

func (*ObjectHandler) Get

func (h *ObjectHandler) Get(c *gin.Context, bucket string)

func (*ObjectHandler) GetCover

func (h *ObjectHandler) GetCover(c *gin.Context)

func (*ObjectHandler) GetVideo

func (h *ObjectHandler) GetVideo(c *gin.Context)

func (*ObjectHandler) Put

func (h *ObjectHandler) Put(c *gin.Context, bucket string)

func (*ObjectHandler) PutCover

func (h *ObjectHandler) PutCover(c *gin.Context)

func (*ObjectHandler) PutVideo

func (h *ObjectHandler) PutVideo(c *gin.Context)

Jump to

Keyboard shortcuts

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