Documentation ¶ Index ¶ Constants func NewService(opts *cli.Options) (*sqs.SQS, string, error) func Read(opts *cli.Options) error func Relay(opts *cli.Options) error func Write(opts *cli.Options) error type AWSSQS func (a *AWSSQS) Read() error func (a *AWSSQS) Write(value []byte) error type Relayer func (r *Relayer) Relay() error Constants ¶ View Source const ( RetryDuration = time.Duration(10) * time.Second ) Variables ¶ This section is empty. Functions ¶ func NewService ¶ func NewService(opts *cli.Options) (*sqs.SQS, string, error) func Read ¶ func Read(opts *cli.Options) 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 Relay ¶ added in v0.4.0 func Relay(opts *cli.Options) error func Write ¶ func Write(opts *cli.Options) 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 ¶ type AWSSQS ¶ type AWSSQS struct { Options *cli.Options Service *sqs.SQS QueueURL string MsgDesc *desc.MessageDescriptor // contains filtered or unexported fields } func (*AWSSQS) Read ¶ func (a *AWSSQS) Read() error func (*AWSSQS) Write ¶ func (a *AWSSQS) Write(value []byte) error type Relayer ¶ added in v0.4.0 type Relayer struct { Options *cli.Options Service *sqs.SQS QueueURL string RelayCh chan interface{} // contains filtered or unexported fields } func (*Relayer) Relay ¶ added in v0.4.0 func (r *Relayer) Relay() error Source Files ¶ View all Source files aws-sqs.go read.go relay.go write.go Directories ¶ Show internal Expand all Path Synopsis types Click to show internal directories. Click to hide internal directories.