core

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MaxIdleConnections int = 20
	RequestTimeout     int = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AmountRequestPerWorker int64
	AmountTimeInSeconds    int64
}

type Core

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

func NewCore

func NewCore(conn *nats.Conn, bomberIp string) *Core

func (*Core) CheckReady

func (core *Core) CheckReady() bool

func (*Core) FormResultAttack

func (core *Core) FormResultAttack() *rest_contracts.BomberResult

func (*Core) InitializeService

func (core *Core) InitializeService()

func (*Core) PreparingData

func (core *Core) PreparingData(task rest_contracts.Task)

func (*Core) Start

func (core *Core) Start(task rest_contracts.Task, wg *sync.WaitGroup)

type RequestPayload

type RequestPayload struct {
	Request  *fasthttp.Request
	Response *fasthttp.Response
	Id       int
}

type SliceResult

type SliceResult struct {
	Status      int
	TimeElapsed int64
	Timeout     bool
}

Jump to

Keyboard shortcuts

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