perfn

package
v0.0.0-...-f118f6e Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(config Config) error

Types

type ClientConfig

type ClientConfig struct {
	CommonConfig  CommonConfig
	ConnNum       int
	TickPerConnMs int
	PacketSize    int
}

type CommType

type CommType int
const (
	CommTypeClient CommType = iota
	CommTypeServer
)

type CommonConfig

type CommonConfig struct {
	Host string
	Port int
}

type Config

type Config struct {
	ProtocolType             ProtocolType
	CommType                 CommType
	PrometheusMetricsDisable bool
}

type ProtocolType

type ProtocolType int
const (
	ProtocolTypeUdp ProtocolType = iota
	ProtocolTypeTcp
	ProtocolTypeHttp
)

type ServerConfig

type ServerConfig struct {
	CommonConfig CommonConfig
}

Jump to

Keyboard shortcuts

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