queue

package
v0.0.0-...-b77a452 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	MITMPort string
	DNSPort  string
	IP       string

	VM *xen.VM
}

type Job

type Job interface {
	Process(*Agent)
}

type JobQueue

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

func NewJobQueue

func NewJobQueue(agentsConnections []*Agent) *JobQueue

func (*JobQueue) Start

func (q *JobQueue) Start()

func (*JobQueue) Stop

func (q *JobQueue) Stop()

func (*JobQueue) Submit

func (q *JobQueue) Submit(job Job)

type Worker

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

func NewWorker

func NewWorker(agent *Agent, readyPool chan chan Job, done sync.WaitGroup) *Worker

func (*Worker) Start

func (a *Worker) Start()

func (*Worker) Stop

func (a *Worker) Stop()

Jump to

Keyboard shortcuts

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