async

package
v0.0.0-...-ef20d85 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncHandler

type AsyncHandler interface {
	Do(method, params string, taskId int) error
}

type Task

type Task struct {
	Id     int
	State  int //process state
	Module string
	Method string
	Args   string
}

type TaskActor

type TaskActor struct {
	TaskChan chan Task

	FinishChan chan TaskReslt
	// contains filtered or unexported fields
}

func NewTaskActor

func NewTaskActor() *TaskActor

type TaskReslt

type TaskReslt struct {
	Result string
	TaskId int
	State  int
}

type VideoCompressParam

type VideoCompressParam struct {
	File             string
	ProgressRedisKey string
	VideoId          int
}

type VideoHandler

type VideoHandler struct{}

func (VideoHandler) CompressDash

func (v VideoHandler) CompressDash(params string, taskId int) error

func (VideoHandler) Do

func (v VideoHandler) Do(method, params string, taskId int) error

func (VideoHandler) Mp4

func (v VideoHandler) Mp4(params string, taskId int) error

}

Jump to

Keyboard shortcuts

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