core

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: 14 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() *Core

func (*Core) CheckReady

func (core *Core) CheckReady() bool

func (*Core) FormResultAttack

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

func (*Core) GetConfig added in v0.2.0

func (core *Core) GetConfig() *nats_listener.NatsConnectionConfiguration

func (*Core) GetConnection added in v0.2.0

func (core *Core) GetConnection() *nats.Conn

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