Documentation
¶
Index ¶
- Variables
- func InitWalletSession() (*wallet_handler.WalletHandler, *file_io_handler.FileIoHandler)
- type FileIoQueue
- type Handlers
- type JApiCore
- func (j JApiCore) AdvancedDeleteByPathHandler(delFunc func(num int64)) bunrouter.HandlerFunc
- func (j JApiCore) AdvancedDeleteFromBulkByPathHandler(delFunc func(num int64)) bunrouter.HandlerFunc
- func (j JApiCore) AdvancedDownloadByPathHandler(reportFunc func(num int64)) bunrouter.HandlerFunc
- func (j JApiCore) AdvancedDownloadFromBulkByPathHandler(reportFunc func(num int64)) bunrouter.HandlerFunc
- func (j JApiCore) BasicDeleteByPathHandler() bunrouter.HandlerFunc
- func (j JApiCore) BasicDeleteFromBulkByPathHandler() bunrouter.HandlerFunc
- func (j JApiCore) BasicDownloadByPathHandler() bunrouter.HandlerFunc
- func (j JApiCore) BasicDownloadFromBulkByPathHandler() bunrouter.HandlerFunc
- func (j JApiCore) DeleteByFidHandler() bunrouter.HandlerFunc
- func (j JApiCore) DownloadByFidHandler() bunrouter.HandlerFunc
- func (j JApiCore) Handler() bunrouter.HandlerFunc
- func (j JApiCore) ImportHandler() bunrouter.HandlerFunc
- func (j JApiCore) IpfsHandler() bunrouter.HandlerFunc
- func (j JApiCore) LoadFolderContentsByPathHandler() bunrouter.HandlerFunc
- func (j JApiCore) MethodNotAllowedHandler() bunrouter.HandlerFunc
- func (j JApiCore) RouteNotFoundHandler() bunrouter.HandlerFunc
- func (j JApiCore) UploadByPathHandler() bunrouter.HandlerFunc
- func (j JApiCore) UploadMultiByPathHandler() bunrouter.HandlerFunc
- func (j JApiCore) VersionHandler() bunrouter.HandlerFunc
- type ScrapeQueue
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "v0.0.0" Module = "Jackal API Core" )
Functions ¶
func InitWalletSession ¶
func InitWalletSession() (*wallet_handler.WalletHandler, *file_io_handler.FileIoHandler)
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 (q *FileIoQueue) Push(upload *file_upload_handler.FileUploadHandler, folder *folder_handler.FolderHandler, fileIo *file_io_handler.FileIoHandler, wg *sync.WaitGroup) *message
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"`
}
Click to show internal directories.
Click to hide internal directories.