handlers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIGURED          = 0
	COMPLETED_ATTACK    = 1
	ERROR_CONFIGURATION = 3
	ERROR_ATTACK        = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreHandlers

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

func NewCoreHandlers

func NewCoreHandlers(core *core.Core) (*CoreHandlers, error)

func (*CoreHandlers) InitBomber

func (core *CoreHandlers) InitBomber() error

func (*CoreHandlers) InitTopicsHandlers

func (core *CoreHandlers) InitTopicsHandlers(signal chan int) error

func (*CoreHandlers) ShutdownToServer added in v0.2.0

func (core *CoreHandlers) ShutdownToServer()

func (*CoreHandlers) TestSendTask

func (core *CoreHandlers) TestSendTask(config *nats_listener.NatsConnectionConfiguration) error

type IHandlerTopic

type IHandlerTopic interface {
	Configuration(signal chan int) error
}

type ResultConfiguration

type ResultConfiguration struct {
	TaskID string `json:"task_id"`
	Result int    `json:"status"`
}

type StarterTopicHandler

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

func (*StarterTopicHandler) Configuration

func (handl *StarterTopicHandler) Configuration(signal chan int) error

type TaskTopicHandler

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

func (*TaskTopicHandler) Configuration

func (handl *TaskTopicHandler) Configuration(signal chan int) error

Jump to

Keyboard shortcuts

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