constants

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REST SeverAdapterVariant = "rest"
	GRPC SeverAdapterVariant = "grpc"

	KAFKA    BrokerVariant = "kafka"
	RABBITMQ BrokerVariant = "rabbitmq"
	Pulsar   BrokerVariant = "pulsar"

	MONGO   RepositoryVariant = "mongo"
	REDIS   RepositoryVariant = "redis"
	POSTGRE RepositoryVariant = "postgre"

	CPU    StressorValiant = "cpu"
	MEMORY StressorValiant = "memory"
	DISK   StressorValiant = "disk"
)
View Source
const (
	DefaultPayloadCount = 3
)
View Source
const (
	DefaultPayloadSize = MEDIUM
)
View Source
const (
	NumInitialEntries = 100
)

Variables

View Source
var PayloadSizeMap = map[PayloadSizeVariant]int64{
	SMALL:  1024,
	MEDIUM: 4096,
	LARGE:  16384,
}

Functions

This section is empty.

Types

type Action

type Action string
const (
	READ          Action = "read"
	WRITE         Action = "write"
	GET           Action = "get"
	POST          Action = "post"
	SIMPLE_RPC    Action = "simpleRpc"
	CLIENT_STREAM Action = "clientStream"
	SERVER_STREAM Action = "serverStream"
	BI_STREAM     Action = "biStream"
)

type BrokerVariant

type BrokerVariant string

type HttpMethod

type HttpMethod string
const (
	HTTP_POST HttpMethod = "POST"
	HTTP_GET  HttpMethod = "GET"
)

func GetHttpMethodFromAction

func GetHttpMethodFromAction(action Action) HttpMethod

GetHttpMethodFromAction converts Action to HttpMethod

type PayloadSizeVariant

type PayloadSizeVariant string
const (
	SMALL  PayloadSizeVariant = "small"  // 1kb entries
	MEDIUM PayloadSizeVariant = "medium" // 4kb entries
	LARGE  PayloadSizeVariant = "large"  // 16kb entries
)

type RepositoryVariant

type RepositoryVariant string

type SeverAdapterVariant

type SeverAdapterVariant string

type StressorValiant

type StressorValiant string

Jump to

Keyboard shortcuts

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