constants

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of the cluster cofig file
	CLUSTER_CONFIG_FILE_NAME = "hexagon-cluster.yaml"
	// Name of the config file mounted to the service unit pod
	SERVICE_UNIT_CONFIG_FILE_NAME = "service-unit.yaml"
)
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