Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exchange ¶ added in v1.0.0
type Exchange struct { Name string Topics []string Declare bool Type string Durable bool AutoDeleted bool }
Exchange Definition of a RabbitMQ Exchange
func (*Exchange) EnsureCorrectType ¶ added in v1.0.0
func (e *Exchange) EnsureCorrectType()
EnsureCorrectType is responsible to make sure that the read-in type is one of the allowed which right now is direct or topic. If it is not a valid type, will default to direct.
type Invoker ¶
type Invoker interface {
Invoke(topic string, invocation *OpenFaaSInvocation) error
}
Invoker is the Interface used by the OpenFaaS Connector SDK to perform invocations of Lambdas based on a provided topic and message
type OpenFaaSInvocation ¶
type OpenFaaSInvocation struct { ContentType string ContentEncoding string Topic string Message *[]byte }
OpenFaaSInvocation represent an Event Specification used during invocation
func NewInvocation ¶
func NewInvocation(delivery amqp.Delivery) *OpenFaaSInvocation
NewInvocation creates a OpenFaaSInvocation from an amqp.Delivery.
Click to show internal directories.
Click to hide internal directories.