queue

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseListener

type CloseListener interface {
	OnClose() error
}

type Confirmation

type Confirmation interface {
	Confirm() error
	Reject() error
}

type Delivery

type Delivery struct {
	Redelivered bool
}

type DestinationConfig

type DestinationConfig struct {
	RoutingKey string                `json:"name"`
	QueueName  string                `json:"queue"`
	Exchange   string                `json:"exchange"`
	Attributes []string              `json:"attributes"`
	Filters    []FilterConfiguration `json:"filters"`
}

type FilterConfiguration

type FilterConfiguration struct {
	Metadata FilterSpec `json:"metadata"`
	Message  FilterSpec `json:"message"`
}

type FilterFieldsConfig

type FilterFieldsConfig struct {
	FieldName     string
	ExpectedValue string
	Operation     FilterOperation
}

type FilterOperation

type FilterOperation string
const (
	Equal    FilterOperation = "EQUAL"
	NotEqual FilterOperation = "NOT_EQUAL"
	Empty    FilterOperation = "EMPTY"
	NotEmpty FilterOperation = "NOT_EMPTY"
	Wildcard FilterOperation = "WILDCARD"
)

func (*FilterOperation) UnmarshalJSON

func (op *FilterOperation) UnmarshalJSON(data []byte) error

type FilterSpec

type FilterSpec struct {
	Filters []FilterFieldsConfig
}

func (*FilterSpec) UnmarshalJSON

func (fc *FilterSpec) UnmarshalJSON(data []byte) error

type Monitor

type Monitor interface {
	Unsubscribe() error
}

type RouterConfig

type RouterConfig struct {
	Queues map[string]DestinationConfig `json:"queues"`
}

Jump to

Keyboard shortcuts

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