Documentation ¶
Index ¶
- Constants
- func Dynamic(opts *cli.Options) error
- func NewService(opts *cli.Options) (*sqs.SQS, string, 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 AWSSQS
- type Relayer
Constants ¶
View Source
const ( ErrInvalidWriteDelaySeconds = "--delay-seconds must be between 0 and 900" ErrUnableToSend = "unable to complete message send" ErrMissingMessageGroupID = "--message-group-id must be specified when writing to a FIFO queue" )
View Source
const (
RetryDuration = time.Duration(10) * time.Second
)
View Source
const (
RetryReadInterval = 5 * time.Second
)
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 AWS SQS.
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 AWSSQS.
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 ¶
Directories ¶
Path | Synopsis |
---|---|
typesfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.