Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "rabbitmq"
Name of executor
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct { Addrs string `json:"addrs" yaml:"addrs"` // WithTLS bool `json:"with_tls" yaml:"withTLS"` User string `json:"user" yaml:"user"` Password string `json:"password" yaml:"password"` // ClientType must be "consumer" or "producer" ClientType string `json:"client_type" yaml:"clientType"` // QName represents the RabbitMQ queue name QName string `json:"q_name" yaml:"qName"` // Durable represents the RabbitMQ durable parameter Durable bool `json:"durable" yaml:"durable"` // Exchange represents the RabbitMQ exchange Exchange string `json:"exchange" yaml:"exchange"` // RoutingKey represents the RabbitMQ routing key ExchangeType string `json:"exchange_type" yaml:"exchangeType"` // ExchangeType respresents the type of exchange (fanout, etc..) RoutingKey string `json:"routing_key" yaml:"routingKey"` // Represents the limit of message will be read. After limit, consumer stop read message MessageLimit int `json:"message_limit" yaml:"messageLimit"` // Used when ClientType is producer // Messages represents the message sended by producer Messages []Message `json:"messages" yaml:"messages"` }
Executor represents a Test Exec
func (Executor) GetDefaultAssertions ¶
func (Executor) GetDefaultAssertions() *venom.StepAssertions
GetDefaultAssertions return default assertions for type exec
func (Executor) ZeroValueResult ¶
func (Executor) ZeroValueResult() interface{}
ZeroValueResult return an empty implementation of this executor result
type Message ¶
type Message struct { Value string `json:"value" yaml:"value"` Headers amqp.Table `json:"headers" yaml:"headers"` Persistent bool `json:"persistent" yaml:"persistent"` ContentType string `json:"content_type" yaml:"contentType"` ContentEncoding string `json:"content_encoding" yaml:"contentEncoding"` }
Message represents the object sended or received from rabbitmq
type Result ¶
type Result struct { TimeSeconds float64 `json:"timeSeconds" yaml:"timeSeconds"` Body []string `json:"body" yaml:"body"` Messages []interface{} `json:"messages" yaml:"messages"` BodyJSON []interface{} `json:"bodyJSON" yaml:"bodyJSON"` Headers []amqp.Table `json:"headers" yaml:"headers"` Err string `json:"error" yaml:"error"` }
Result represents a step result.
Click to show internal directories.
Click to hide internal directories.