child

package
v0.0.0-...-1618023 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

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

func NewTask

func NewTask(taskid string, devices []int, cfg *worker.Config, c rpc.GoCrackRPC) *Task

func (*Task) DownloadFile

func (t *Task) DownloadFile(fileid string, filetype rpc.FileType) (string, error)

DownloadFile grabs a file from the server and stores it in the appropriate folder

func (*Task) Start

func (t *Task) Start() error

Start the task and block until the engine is done

func (*Task) Stop

func (t *Task) Stop()

Stop the task

type Worker

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

Worker is a version of the worker spawned by the parent and runs the actual engine task

func New

func New(cfg *worker.Config, taskid string, devices []int) *Worker

New instantiates the child worker process

func (*Worker) Start

func (s *Worker) Start() error

Start the processing of the task

func (*Worker) Stop

func (s *Worker) Stop() error

Stop the task

Jump to

Keyboard shortcuts

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