rabbitmq

package
v0.0.0-...-d25aa17 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	trigger.Configuration
	ExchangeName      string
	QueueName         string
	Topics            []string
	ReconnectDuration string
	ReconnectInterval string
	PrefetchCount     int
	DurableExchange   bool
	DurableQueue      bool
	// contains filtered or unexported fields
}

func NewConfiguration

func NewConfiguration(id string,
	triggerConfiguration *functionconfig.Trigger,
	runtimeConfiguration *runtime.Configuration) (*Configuration, error)

type Event

type Event struct {
	nuclio.AbstractEvent
	// contains filtered or unexported fields
}

Event allows accessing an amqp.Delivery

func (*Event) GetBody

func (e *Event) GetBody() []byte

func (*Event) GetContentType

func (e *Event) GetContentType() string

func (*Event) GetHeaderByteSlice

func (e *Event) GetHeaderByteSlice(key string) []byte

func (*Event) GetHeaderString

func (e *Event) GetHeaderString(key string) string

func (*Event) GetHeaders

func (e *Event) GetHeaders() map[string]interface{}

func (*Event) GetID

func (e *Event) GetID() nuclio.ID

func (*Event) GetMethod

func (e *Event) GetMethod() string

func (*Event) GetPath

func (e *Event) GetPath() string

func (*Event) GetTimestamp

func (e *Event) GetTimestamp() time.Time

func (*Event) GetURL

func (e *Event) GetURL() string

Jump to

Keyboard shortcuts

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