Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/armon/relay
/ types & classes
Types & classes
20 in github.com/armon/relay
⨍
Functions
134
◇
Types & classes
20
Interface
Broker
Broker implements a high level interface that can provide Consumer or Publisher
broker/broker.go:7
Struct
Config
Config is passed into New when creating a Relay to tune various parameters around broker interactions.
relay.go:15
Interface
Consumer
Consumer is used to consume messages from a queue
broker/broker.go:20
Struct
Consumer
Consumer is a type that is used only for consuming messages from a single queue. Multiple Consumers can multiplex a single relay
consumer.go:13
Struct
GOBSerializer
GOBSerializer implements the Serializer interface and uses the GOB format
serialization.go:19
Struct
InmemBroker
InmemBroker implements the Broker interface in-memory
inmem/inmem.go:13
Struct
InmemConsumer
InmemConsumer implements the Consumer interface
inmem/inmem.go:21
Struct
InmemPublisher
InmemConsumer implements the Publisher interface
inmem/inmem.go:30
Struct
JSONSerializer
JSONSerializer implements the Serializer interface and uses JSON
serialization.go:34
Struct
PriorityQueue
PriorityQueue is a simple wrapper around a relay.Broker to manage a set of queues with varying priority.
pq/pq.go:26
Interface
Publisher
Publisher is used to push messages into a queue
broker/broker.go:14
Struct
Publisher
Publisher is a type that is used only for publishing messages to a single queue. Multiple Publishers can multiplex a single relay
publisher.go:15
Struct
Relay
relay.go:33
Interface
Serializer
Serializer interface is used to encode and decode messages. If not provided, a default serializer using gob is provided.
serialization.go:12
Struct
basic
serialization_test.go:11
Struct
priorityResp
priorityResp is used as a container for response data during a Consume(). Since the response must be fed down a channel and contains multiple values,
pq/pq.go:39
Struct
relayBroker
relay.go:380
Struct
retryBroker
retryBroker implements a resilient AMQP broker which automatically replaces the underlying channel if an unexpected error is observed. Due to AMQP's p
retry.go:33
Struct
retryConsumer
retryConsumer tracks the relay broker and an associated consumer, allowing the consumer to be replaced transparently in the face of failure.
retry.go:83
Struct
retryPublisher
retryPublisher wraps a relay broker and an associated publisher, allowing the underlying publisher's channel to be automatically swapped out if any er
retry.go:248