Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultPrefix url prefix of pprof
DefaultPrefix = "/storage"
)
Variables ¶
This section is empty.
Functions ¶
func RouteRegister ¶
func RouteRegister(rg *gin.RouterGroup, prefixOptions ...string) (closeFn func())
Types ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.