japicore

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "v0.0.0"
	Module  = "Jackal API Core"
)

Functions

Types

type FileIoQueue

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

func NewFileIoQueue

func NewFileIoQueue() *FileIoQueue

func (*FileIoQueue) GetRoot

func (q *FileIoQueue) GetRoot(root string) string

func (*FileIoQueue) Listen

func (q *FileIoQueue) Listen()

func (*FileIoQueue) Push

func (*FileIoQueue) PushRoot

func (q *FileIoQueue) PushRoot(root string, marker string)

func (*FileIoQueue) Size

func (q *FileIoQueue) Size() int

type Handlers

type Handlers map[string]*func(w http.ResponseWriter, r bunrouter.Request, queue *FileIoQueue, fileIo *file_io_handler.FileIoHandler) error

type JApiCore

type JApiCore struct {
	FileIo      *file_io_handler.FileIoHandler
	FileIoQueue *FileIoQueue
	ScrapeQueue *ScrapeQueue
	Wallet      *wallet_handler.WalletHandler
}

func InitJApiCore

func InitJApiCore() *JApiCore

func (JApiCore) AdvancedDeleteByPathHandler

func (j JApiCore) AdvancedDeleteByPathHandler(delFunc func(num int64)) bunrouter.HandlerFunc

func (JApiCore) AdvancedDeleteFromBulkByPathHandler

func (j JApiCore) AdvancedDeleteFromBulkByPathHandler(delFunc func(num int64)) bunrouter.HandlerFunc

func (JApiCore) AdvancedDownloadByPathHandler

func (j JApiCore) AdvancedDownloadByPathHandler(reportFunc func(num int64)) bunrouter.HandlerFunc

func (JApiCore) AdvancedDownloadFromBulkByPathHandler

func (j JApiCore) AdvancedDownloadFromBulkByPathHandler(reportFunc func(num int64)) bunrouter.HandlerFunc

func (JApiCore) BasicDeleteByPathHandler

func (j JApiCore) BasicDeleteByPathHandler() bunrouter.HandlerFunc

func (JApiCore) BasicDeleteFromBulkByPathHandler

func (j JApiCore) BasicDeleteFromBulkByPathHandler() bunrouter.HandlerFunc

func (JApiCore) BasicDownloadByPathHandler

func (j JApiCore) BasicDownloadByPathHandler() bunrouter.HandlerFunc

func (JApiCore) BasicDownloadFromBulkByPathHandler

func (j JApiCore) BasicDownloadFromBulkByPathHandler() bunrouter.HandlerFunc

func (JApiCore) DeleteByFidHandler

func (j JApiCore) DeleteByFidHandler() bunrouter.HandlerFunc

func (JApiCore) DownloadByFidHandler

func (j JApiCore) DownloadByFidHandler() bunrouter.HandlerFunc

func (JApiCore) Handler

func (j JApiCore) Handler() bunrouter.HandlerFunc

func (JApiCore) ImportHandler

func (j JApiCore) ImportHandler() bunrouter.HandlerFunc

func (JApiCore) IpfsHandler

func (j JApiCore) IpfsHandler() bunrouter.HandlerFunc

func (JApiCore) LoadFolderContentsByPathHandler added in v0.4.0

func (j JApiCore) LoadFolderContentsByPathHandler() bunrouter.HandlerFunc

func (JApiCore) MethodNotAllowedHandler

func (j JApiCore) MethodNotAllowedHandler() bunrouter.HandlerFunc

func (JApiCore) RouteNotFoundHandler

func (j JApiCore) RouteNotFoundHandler() bunrouter.HandlerFunc

func (JApiCore) UploadByPathHandler

func (j JApiCore) UploadByPathHandler() bunrouter.HandlerFunc

func (JApiCore) UploadMultiByPathHandler added in v0.3.3

func (j JApiCore) UploadMultiByPathHandler() bunrouter.HandlerFunc

func (JApiCore) VersionHandler

func (j JApiCore) VersionHandler() bunrouter.HandlerFunc

type ScrapeQueue

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

func NewScrapeQueue

func NewScrapeQueue(fIQueue *FileIoQueue) *ScrapeQueue

func (*ScrapeQueue) Listen

func (q *ScrapeQueue) Listen()

func (*ScrapeQueue) Push

func (q *ScrapeQueue) Push(fileIo *file_io_handler.FileIoHandler, w http.ResponseWriter, wg *sync.WaitGroup, destPath string, filename string, host string) *scrapee

func (*ScrapeQueue) Size

func (q *ScrapeQueue) Size() int

type UploadResponse

type UploadResponse struct {
	FID string `json:"fid"`
}

Jump to

Keyboard shortcuts

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