Documentation ¶
Index ¶
- func Dynamic(opts *cli.Options) error
- func Read(opts *cli.Options, md *desc.MessageDescriptor) error
- func Relay(opts *cli.Options, relayCh chan interface{}, shutdownCtx context.Context) (relay.IRelayBackend, error)
- func Write(opts *cli.Options, md *desc.MessageDescriptor) error
- type RabbitMQ
- type Relayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dynamic ¶ added in v0.28.0
Dynamic starts up a new GRPC client connected to the dProxy service and receives a stream of outbound replay messages which are then written to the message bus.
func Read ¶
func Read(opts *cli.Options, md *desc.MessageDescriptor) error
Read is the entry point function for performing read operations in RabbitMQ.
This is where we verify that the provided arguments and flag combination makes sense/are valid; this is also where we will perform our initial conn.
func Write ¶
func Write(opts *cli.Options, md *desc.MessageDescriptor) error
Write is the entry point function for performing write operations in RabbitMQ.
This is where we verify that the passed args and flags combo makes sense, attempt to establish a connection, parse protobuf before finally attempting to perform the write.
Types ¶
type RabbitMQ ¶
type RabbitMQ struct { Options *cli.Options Consumer *rabbit.Rabbit MsgDesc *desc.MessageDescriptor // contains filtered or unexported fields }
RabbitMQ holds all attributes required for performing a read/write operations in RabbitMQ. This struct should be instantiated via the rabbitmq.Read(..) or rabbitmq.Write(..) functions.