Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SHA-1 Validation
ShaLength = 8
)
Variables ¶
View Source
var (
ErrValidation = errors.New("validation error")
)
Functions ¶
Types ¶
type Subtask ¶
type Subtask struct { Handler string `json:"handler"` Type SubtaskType `json:"type"` Data []string `json:"data"` // Leave it empty and pass Subtask to dispatcher, and it will generate a random ID. ID int64 `json:"id"` }
type SubtaskResult ¶
type SubtaskType ¶
type SubtaskType int
const ( SubtaskLogin SubtaskType = iota SubtaskList SubtaskElect )
type TaskRequest ¶
type TaskResponse ¶
type WorkResponse ¶
Click to show internal directories.
Click to hide internal directories.