Documentation ¶
Overview ¶
Package uploader handles post cmds when show ends.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHandlerFunc = TaskHandlerFunc(OliveDefault)
View Source
var DefaultTaskMux = &defaultTaskMux
Functions ¶
func OliveArchive ¶
func OliveBiliup ¶
func OliveDefault ¶
func OliveTrash ¶
Types ¶
type TaskHandler ¶
type TaskHandlerFunc ¶
func (TaskHandlerFunc) Process ¶
func (f TaskHandlerFunc) Process(t *Task) error
type TaskMux ¶
type TaskMux struct {
// contains filtered or unexported fields
}
func (*TaskMux) MustGetHandler ¶
func (mux *TaskMux) MustGetHandler(pattern string) TaskHandler
func (*TaskMux) RegisterHandler ¶
func (mux *TaskMux) RegisterHandler(pattern string, handler TaskHandler)
type WorkerPool ¶
type WorkerPool struct {
// contains filtered or unexported fields
}
var UploaderWorkerPool *WorkerPool
func NewWorkerPool ¶
func (*WorkerPool) AddTask ¶
func (wp *WorkerPool) AddTask(tasks ...*TaskGroup)
func (*WorkerPool) BiliupPrerun ¶
func (wp *WorkerPool) BiliupPrerun()
func (*WorkerPool) Run ¶
func (wp *WorkerPool) Run()
func (*WorkerPool) Stop ¶
func (wp *WorkerPool) Stop()
Click to show internal directories.
Click to hide internal directories.