Documentation ¶
Index ¶
Constants ¶
View Source
const Name = "mqtt"
Name of executor
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct { Addrs string `json:"addrs" yaml:"addrs"` // ClientType must be "consumer", "producer" or "persistent_queue" ClientType string `json:"client_type" yaml:"clientType"` PersistSubscription bool `json:"persist_subscription" yaml:"persistSubscription"` ClientID string `json:"client_id" yaml:"clientId"` // Subscription topic Topics []string `json:"topics" yaml:"topics"` // Represents the limit of message will be read. After limit, consumer stop read message MessageLimit int `json:"message_limit" yaml:"messageLimit"` // Represents the mqtt connection timeout for reading messages. In Milliseconds. Default 5000 ConnectTimeout int64 `json:"connect_timeout,omitempty" yaml:"connectTimeout,omitempty"` // Represents the timeout for reading messages. In Milliseconds. Default 5000 Timeout int64 `json:"timeout,omitempty" yaml:"timeout,omitempty"` // Used when ClientType is producer // Messages represents the message sent by producer Messages []Message `json:"messages" yaml:"messages"` QOS byte `json:"qos" yaml:"qos"` }
func (Executor) GetDefaultAssertions ¶
func (Executor) GetDefaultAssertions() *venom.StepAssertions
GetDefaultAssertions return default assertions for type exec
type Message ¶
type Message struct { Topic string `json:"topic" yaml:"topic"` QOS byte `json:"qos" yaml:"qos"` Retained bool `json:"retained" yaml:"retained"` Payload string `json:"payload" yaml:"payload"` }
Message represents the object sent or received from rabbitmq
type Result ¶
type Result struct { TimeSeconds float64 `json:"timeseconds" yaml:"timeSeconds"` Topics []string `json:"topics" yaml:"topics"` Messages []interface{} `json:"messages" yaml:"messages"` MessagesJSON []interface{} `json:"messagesjson" yaml:"messagesJSON"` Err string `json:"err" yaml:"error"` }
Result represents a step result.
Click to show internal directories.
Click to hide internal directories.