python

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PythonClientImage string          = "docker.io/qdrshipshape/clients-python:latest"
	BasicSender       PythonClientCmd = "basic.sender.py"
	BasicReceiver     PythonClientCmd = "basic.receiver.py"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientBuilder

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

func NewClientBuilder

func NewClientBuilder(name string, command PythonClientCmd, ctx framework.ContextData, url string) *ClientBuilder

func (*ClientBuilder) Build

func (s *ClientBuilder) Build() *PythonClient

func (*ClientBuilder) EnableTracing

func (s *ClientBuilder) EnableTracing() *ClientBuilder

func (*ClientBuilder) EnvVar

func (s *ClientBuilder) EnvVar(variable, value string) *ClientBuilder

func (*ClientBuilder) ImageCustom

func (s *ClientBuilder) ImageCustom(image string) *ClientBuilder

func (*ClientBuilder) Timeout

func (s *ClientBuilder) Timeout(timeout int) *ClientBuilder

type PythonClient

type PythonClient struct {
	amqp.AmqpClientCommon
}

func DeployPythonClient

func DeployPythonClient(ctx *framework.ContextData, icName, clientName, address string, debug bool, command PythonClientCmd, numberOfClients, msgCount, msgSize, timeout int) []*PythonClient

func (*PythonClient) Result

func (p *PythonClient) Result() amqp.ResultData

type PythonClientCmd

type PythonClientCmd string

type PythonClientResult

type PythonClientResult struct {
	Delivered int    `json:"delivered"`
	Released  int    `json:"released"`
	Rejected  int    `json:"rejected"`
	Modified  int    `json:"modified"`
	Accepted  int    `json:"accepted"`
	ErrorMsg  string `json:"errormsg"`
}

Jump to

Keyboard shortcuts

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