signatures

package
v0.0.0-...-df48c48 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: BSD-2-Clause Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskArg

type TaskArg struct {
	Type  string
	Value interface{}
}

TaskArg represents a single argument passed to invocation fo a task

type TaskSignature

type TaskSignature struct {
	UUID           string
	Name           string
	RoutingKey     string
	GroupUUID      string
	GroupTaskCount int
	Args           []TaskArg
	Immutable      bool
	OnSuccess      []*TaskSignature
	OnError        []*TaskSignature
	ChordCallback  *TaskSignature
}

TaskSignature represents a single task invocation

func (*TaskSignature) AdjustRoutingKey

func (taskSignature *TaskSignature) AdjustRoutingKey(exchangeType, bindingKey, queueName string)

AdjustRoutingKey makes sure the routing key is correct. If the routing key is an empty string: a) set it to binding key for direct exchange type b) set it to default queue name

Jump to

Keyboard shortcuts

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