gin_storage

package module
v0.0.3 Latest Latest
Warning

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

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

README

gin-storage

Documentation

Index

Constants

View Source
const (
	// DefaultPrefix url prefix of pprof
	DefaultPrefix = "/storage"
)

Variables

This section is empty.

Functions

func Register

func Register(r *gin.Engine, prefixOptions ...string) (closeFn func())

func RouteRegister

func RouteRegister(rg *gin.RouterGroup, prefixOptions ...string) (closeFn func())

Types

type BatchFile

type BatchFile struct {
	Filename string `json:"filename,omitempty" validate:"required"`
	Path     string `json:"path,omitempty" validate:"required"`
}

type FileHandler

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

func NewFileHandler

func NewFileHandler(storage storage.IFile) *FileHandler

func (FileHandler) Batch

func (fh FileHandler) Batch(c *gin.Context)

func (FileHandler) List

func (fh FileHandler) List(c *gin.Context)

func (FileHandler) MultiplePublicize

func (fh FileHandler) MultiplePublicize(c *gin.Context)

func (FileHandler) Publicize

func (fh FileHandler) Publicize(c *gin.Context)

func (FileHandler) Remove

func (fh FileHandler) Remove(c *gin.Context)

func (FileHandler) Upload

func (fh FileHandler) Upload(c *gin.Context)

type PublicizeURL

type PublicizeURL struct {
	Filename string `json:"filename,omitempty" validate:"required"`
	URL      string `json:"url,omitempty" validate:"required"`
}

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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