core

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *log.Logger

Functions

func DownloadFile

func DownloadFile(url, dirPath string) error

func DownloadFiles

func DownloadFiles(urls []string, dirPath string) error

func LoadLogger

func LoadLogger()

func NewUploader

func NewUploader()

func WithError

func WithError(c *fiber.Ctx, msg string, statusCode int) error

func WithSuccess

func WithSuccess(c *fiber.Ctx, msg string, data fiber.Map) error

Types

type IToolBox

type IToolBox interface {
	Upload(uploadPath string) (string, error)
}

type ToolBox

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

func NewToolBox

func NewToolBox(dirName string) *ToolBox

func (*ToolBox) Clean

func (tb *ToolBox) Clean() error

func (*ToolBox) Merge

func (tb *ToolBox) Merge(urls []string) error

func (*ToolBox) Upload

func (tb *ToolBox) Upload(uploadPath string) (string, error)

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}
var UploaderClient Uploader

func (*Uploader) Upload

func (u *Uploader) Upload(content []byte, path string) (string, error)

Jump to

Keyboard shortcuts

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